i keep getting an emplty graph figure when plotting using these specific codes on matlab 2015 version unless i bolden and change the color of the plot. However the codes run and plot on lower versions of matlab, 2011 and 2012 specifically without having to bolden and change the graph color. these are codes. dt=1/1000; t=0:dt:6; g=9.81; h=2; u=0; for t=0:dt:6; v = u + (g*dt); dh=0.5*(u+v)*dt; h1 = h-dh; h = h1; u=v; plot (t,h); hold on; end
MATLAB: Matlab 2015 returns an empty graph
plotplotting
Best Answer