Recent content by madjid222
-
M
Using ODE45 to Solve Matrix Differential Equations in MATLAB
I would be grateful if you could possibly help me- madjid222
- Post #2
- Forum: Introductory Physics Homework Help
-
M
Using ODE45 to Solve Matrix Differential Equations in MATLAB
Homework Statement If we have differential variable of matrix kind ( with dimension 3*3 ) and non matrix ( with dimension 1) simaltanously and as a couple ,how can we use ode45 ? If we have only matrix kind , we can use m file of ode at first with the command of reshape (3,3) and then change...- madjid222
- Thread
- Matlab Ode45
- Replies: 1
- Forum: Introductory Physics Homework Help
-
M
MATLAB Plotting Variables (b,u) in Function "Step"
please help me- madjid222
- Post #2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
MATLAB Plotting Variables (b,u) in Function "Step"
Hi Friends I want to plot variables (b,u) that are in function "step" . function main [t,v]=ode45('step',[0 20],0,[]); plot(t,v) function dv=step(t,v) c1=1; if t<10 u=1; else u=-1; end dv=c1*u-2*v; b=dv/2; but these variables are unknown in function "main". thanks.- madjid222
- Thread
- Function Plotting Variables
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX