Plotting Van Der Pol

4 views (last 30 days)
Denis Brosnki
Denis Brosnki on 20 Nov 2016
Answered: Star Strider on 20 Nov 2016
Hello, I just have a simple question. I have a Van der Pol equation, which I want to plot:
[t,y] = ode15s(@vdp1000,[0 3000],[2 0]);
plot(t,y(:,1),'r-o')
My question is what is the meaning of the (:,1) in the plot function? I could not find any answers in the documentation or on this website. Thank you in advance

Accepted Answer

Star Strider
Star Strider on 20 Nov 2016
The ‘y(:,1)’ references the first column of the ‘y’ matrix returned by ode15s.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!