MATLAB: Plotting Van Der Pol

ode15plotvanderpol

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

Best Answer

The ‘y(:,1)’ references the first column of the ‘y’ matrix returned by ode15s.
Related Question