Plotting Van Der Pol

4 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by