MATLAB: How does the plot connect the points

plot

I have 2 vectors in plot and I would like to know how the points of the vectors are connected – by spline or by segment line or…? Example: t=[0,20]; init_y1=0; init_y2=1; [T,Y]=ode45(@p1,t,[init_y1 init_y2],options); plot(T,Y(:,1),'black-');

Best Answer

In that instance (the results of ode45), the plot call simply connects them with straight lines. It does no interpolation or curve-fitting.