Community Profile

photo

Dereje


Last seen: 4 years ago Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Parameter calculation by using loops in ODE45
For any initial values(Ofcourse with limits) I used it either excutes on the 4th iteration or it would be beyond the MAX iterati...

4 years ago | 0 answers | 0

0

answers

Question


How to convert 3D line plot into 3D surf plot.
I need help on how to plot the following 3D line plot(plot3) in to a surf plot. zspan = linspace(0,400); v0mat = [1 0.01 1]; ...

5 years ago | 1 answer | 0

1

answer

Question


How to plot 3D plotting
I need help on how to plot the following 2D plot in to a 3D plot. zspan=[0,400]; v0mat = [1 0.01 1]; zsol = {}; v1sol = {...

5 years ago | 1 answer | 0

1

answer

Question


How can I get an asymptotic solution for 2nd order differential equation.
For the 2nd order differenttiaal equation: where and are constants. How can I get an asymptotic solution, where for z=0...

5 years ago | 0 answers | 0

0

answers

Question


Sensitivity analysis of an ODE
Hi, I have been asked to do the sensitivity analysis of an ode Model. The idea is new to me and I need some help to give me so...

5 years ago | 1 answer | 0

1

answer

Question


How to stop ode45 when value reach certain value other-than zero
I need to stop the ode when y(2) is 0.2 and here is the function I used for the solver but It doesn't work. Any thing wrong with...

6 years ago | 2 answers | 0

2

answers

Question


Extra parameter/alpha in ODE45
I am not able to find out why the extra parameter/alpha is not converging to the exact solution. My code seems ok. I need your h...

6 years ago | 0 answers | 0

0

answers

Question


Extra parameter using iterative method in ODE45
I am not able to find out why the extra parameter/alpha is not converging to the exact solution. It just takes the first value i...

6 years ago | 1 answer | 0

1

answer

Question


Unknown parameters in ode
I am trying to solve an ode with an unknown parameter. I am not sure If I am doing it in the right way. 'Not enough input argu...

6 years ago | 1 answer | 0

1

answer

Question


ode45 for the shooting method.
I want to predict a constant for the target height for the given ode problem. The target height is highly dependent on the con...

6 years ago | 0 answers | 0

0

answers

Question


prediction of alpha given maximum height.
The code which I posted below calculates the maximum height.This height depends on the entrainmnet constant(alpha) which I used ...

6 years ago | 0 answers | 0

0

answers

Question


Scatter plot: X and Y must be vectors of the same length
I want to plot the maximum height of an array. I am getting an error : X and Y must be vectors of the same length. Thanks for t...

6 years ago | 1 answer | 0

1

answer

Question


How do I use scatter plot
How do I use scatter plot: To get the value of zsol for each case v2sol is 0.4(For example) in the following code. Thanks for t...

6 years ago | 2 answers | 0

2

answers

Question


How to get a connection between alpha and z.
By using ODE 45 I have results for the three unknowns. My question is to get a closer, there should be some value of the const...

6 years ago | 0 answers | 0

0

answers

Question


How to plot point-wise figures from existing one.
According to the attached figure w is zero for specific z. Need help how to plot only the value of z for each case (when w beco...

6 years ago | 1 answer | 0

1

answer

Question


Gauss-Seidal solver for 1D heat equation
I tried using Gauss-Seidal solver by computing A and the right hand side. But still got an error:) asking for help. x_mi...

6 years ago | 0 answers | 0

0

answers

Question


1-D Heat equation
I have no idea what went wrong. Two days since looking for the errors, please help if close all x_min= 0; x_max = 1; N =...

6 years ago | 1 answer | 0

1

answer

Question


1D Poisson Solver Warning: Matrix is singular to working precision
I can't not see any problem with the matrix but can't fix the problem. % x_min = 0; % min(doma...

6 years ago | 0 answers | 0

0

answers

Question


Assembling Jacobian Iterative method when the source term is not a matrix
I want to compute the approximations Ti for i=1,..n by solving the linear system AT=b, A is sparse matrix and b=(f(x1); f...

6 years ago | 0 answers | 0

0

answers

Question


I can not find the error in this Gauss Seidal equation.
% function x1 = GaussSeidal(a,b,x0,tol) N=100000; k=1; x=x0; while(k<N) n = length(b); for j = 1 : n x...

6 years ago | 1 answer | 0

1

answer

Question


I am getting Vectors must be the same length error when I tried to plot. I have attached the full Matlab-files.
zspan=[0,400]; w0=0.1; b=1; gmark=1; y0=[b*b*w0; b*b*w0*w0; b*b*w0*gmark];% Initial values options=odeset('RelTol',1e-6,'...

6 years ago | 1 answer | 0

1

answer

Question


How to solve a second degree derivative with another variable
(M)'' + N*M= 0; Is it possible to solve the above equation if N is not a constant ?

6 years ago | 0 answers | 0

0

answers

Question


How to plot for a different initial values at same time
I need help how to plot for a different initial values of v0 at same time. if zspan=[0,400]; v0=[1;0.01;0.12;]; %...

6 years ago | 2 answers | 0

2

answers

Question


DECIMAL To Binary Representation
Need help for a code that changes numbers into binary normal representation and storage in a single precision. Not MATLAB built-...

6 years ago | 1 answer | 0

1

answer

Question


Need help to stop the ode when v(2) is zero using ode events. I have tried in so many ways but couldn't get result.
%% Data for desnity with respect to depth z = [2 3 5 7 10 15 20 25 30 40 50 60 70 80 90 100 125 150 160 175 200 225 25...

6 years ago | 1 answer | 0

1

answer

Answered
how do I pre-allocate the program. It highlights it in red and I am not able to do that. Thanks for helping.
@Guillame there is an error(Matrix mis-match) on sol(i) = t; @Greg I don't understand your point.

6 years ago | 0

Question


how do I pre-allocate the program. It highlights it in red and I am not able to do that. Thanks for helping.
for i=1:numel(rho)-1 rho0=17.1; zspan = [z(i) z(i+1)]; NS =(rho(i+1)-rho(i))/(z(i+1)-z(i)); [t,v] = ode45(@(t,...

6 years ago | 3 answers | 0

3

answers

Question


I am having trouble multiplying my main ode function with an external function NS which is supposed to be multiplied on the RHS. Thanks for the great help.
tspan = [0 20]; y0 = [0 0.01]; [z,y] = ode45(@odefcn, tspan, y0); plot(z,y(:,1),'-o',z,y(:,2),'-.') function d...

6 years ago | 1 answer | 0

1

answer

1

answer