MATLAB: How to add an initial point to 5 curves in a plot

curveplot

hold on
plot(t,dCa1dt);
plot(t,dCa2dt);
plot(t,dCa3dt);
plot(t,dCa4dt);
plot(t,dCa5dt);
hold off
% this was the plot command and I need to add an initial point so that all curves start from same point.

Best Answer

tt = [t_for_initial_point, t];
d0 = y_for_initial_point;
plot(tt, [d0, dCa1dt]);
plot(tt, [d0, dCa2dt]);
plot(tt, [d0, dCa3dt]);
plot(tt, [d0, dCa4dt]);
plot(tt, [d0, dCa5dt]);
Related Question