Plotting data in matlab
Hi,
I wanted to plot an ode, but when i do it plots 2 values, y(1) and
y(2), is there any way that i can get it to plot only one????
function dydt = pen(t,y)
m = 10;
l = 10;
g = 9.81;
dydt = [y(2); -g*sin(y(1))/l];
and
[t,y] = ode45(@pen,[0 20], [pi/2 0]);
plot(t,y);
is used to execute.
Many Thanks
.
Relevant Pages
- Re: ODE solver
... > solution/function to an ODE instead of graphing the solution? ... can plot them. ... (comp.soft-sys.matlab) - Re: Please guide me.thanks
... >I want to plot a ode in Matlab6.In this ode i have A'' as ... > concentration in a reactor and t as time.I want to see how 'A' ... There are many examples on how to use ode45 on the net, ... plot all solution on the same plot. ... (comp.soft-sys.matlab) - Re: Please guide me.thanks
... Nasser Abbasi wrote: ... >>I want to plot a ode in Matlab6.In this ode i have A'' as ... >> please help me with ode45. ... (comp.soft-sys.matlab) - Re: LOG of a solution of ODE plotted against its parameter
... I can see how it will be possible to solve the ode many times while ... varying the parameter a. ... But I need to plot the Logagainst the values of a used to generate ... This ODE is supposed to have bistability over that range of parameters. ... (sci.math) - LOG of a solution of ODE plotted against its parameter
... I can see how it will be possible to solve the ode many times while ... varying the parameter a. ... But I need to plot the Logagainst the values of a used to generate ... This ODE is supposed to have bistability over that range of parameters. ... (sci.math) |
|