photo

Naveen Krish


Last seen: 2 months ago Active since 2022

Followers: 0   Following: 0

Statistics

MATLAB Answers

11 Questions
0 Answers

RANK
156,792
of 300,674

REPUTATION
0

CONTRIBUTIONS
11 Questions
0 Answers

ANSWER ACCEPTANCE
18.18%

VOTES RECEIVED
0

RANK
 of 21,041

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 170,032

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Thankful Level 2

View badges

Feeds

View by

Question


File: laxexplicit.m Line: 41 Column: 31 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
% Chlorine Decay Flow for the Lax method to solve the advection equation clear; % Parameters to definr the advection equatio...

3 years ago | 1 answer | 0

1

answer

Question


I need to change the boundary condition in the code below
% Heat diffusion in one dimensional wire within the explicit FTCS method clear; % Parameters to define the heat equation and...

3 years ago | 1 answer | 0

1

answer

Question


Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in explicitftcs (line 28) u(Nx+1,k) = 1.; >> u(Nx+1,k) = 1.; Index in
% Heat diffusion in one dimensional wire within the explicit FTCS method clear; % Parameters to define the heat equation and t...

3 years ago | 2 answers | 0

2

answers

Question


Error using plot Vectors must be the same length. Error in Eulerrk (line 54) plot (t,h(:,1),A,xR,yR(:,1))
clc clear all %%RK Method %h=[3600 1800 900 450 225]; h = 3600; A0=1; B0=3; P0=0; K=5*10^-5; Yb=1; Yp=0.15; xR ...

3 years ago | 1 answer | 0

1

answer

Question


Not enough input arguments. Error in odefun (line 2) y1 = y(1); Error in bvp4c (line 5) sol =bvp4c(odefun,bcfun,solinit);
function dydx = odefun(y,x) % equation to solve y1 = y(1); y2= y(2); dy1_dx = y(2); dy2_dx = [U*y2+K*y1/D]; dy_dx = [dy_dx;...

3 years ago | 2 answers | 0

2

answers

Question


File: bvpfcn.m Line: 1 Column: 23 Invalid use of operator.
Hi, I'm doing a project on chlorine decay in water distribution pipes, to solve this ODE with the following Matlab's BVP4C func...

3 years ago | 2 answers | 0

2

answers

Question


need to use this analytical solution to plot the absolute percent error in the concentration A at each time step for Euler's method
%% Euler nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A(1) = 1; B(...

3 years ago | 1 answer | 0

1

answer

Question


Unrecognized function or variable 'A'. Error in ode89vsrk (line 37) plot (t,A,x,Y(:,1))
clc clear all %% ODE89 A0=1; B0=3; P0=0; K=5*10^-5; Yb=1; Yp=0.15; tspan = [0 43200]; [x,Y] = ode89(@(t,Y) odefun...

3 years ago | 1 answer | 0

1

answer

Question


Not enough input arguments Error in bvpfcn (line 5) dydx = [y(2)*(U*y(2)+K*y(1))/D];
Error in bvpfcn (line 5) dydx = [y(2)*(U*y(2)+K*y(1))/D];

3 years ago | 1 answer | 0

1

answer

Question


I got two different graphs from my code like ODE89 and Eulers method. I need to compare the graphs in it.
ODE89 clc clear all A0=1; B0=3; P0=0; K=5*10^-5; Yb=1; Yp=0.15; tspan = [0 43200]; [t,Y] = ode89(@(t,Y) odefun(t,...

3 years ago | 1 answer | 0

1

answer

Question


I want to comapre my A,B and P against time and want to compare my ODE89 function with Eulers method with a timestep of 3600
nsteps = 12; t = zeros (nsteps,1); A = zeros (nsteps,1); B = zeros(nsteps, 1); P = zeros(nsteps,1); A0 = 1; B0 = 3; P0 = ...

3 years ago | 1 answer | 0

1

answer