The ‘y(:,1)’ references the first column of the ‘y’ matrix returned by ode15s.
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
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

