Well, obviously the second one is plotted on a single axes whereas in the first case you (or whoever wrote the script) used yyaxis to call a second yaxis. Do you even have two quantities in the second case? I mean, you only have one plot…
figure(SlopevsA) plot(Current,Slope) hold on
Best Answer