Plot a system of ODE, not against time

Hi, I'm wanting to plot a graph of x(3) against x(1) witht the following code, bit I can't see how I can do this without plotting them aganist time
my code so far is
function [T,X] = fig7a()
tspan=[0 150];
x2_0=0;
x4_0=0;
x5_0=1;
[T_1,X1] = ode15s(@odesys1,tspan,[ x2_0 x4_0 x5_0]);
plot(T_1,X1(:,1))
end
with odesys1 as another document with a system of 5 ode

 Accepted Answer

plot(x(:,1),x(:,3))

3 Comments

if the answer worked make sure to accept the answer
Thanks, this now plots, however, it's not plotting what I expect, could it be there is something else wrong with my code?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!