Trying to develop the following in Matlab:
** loop start; y(:,i) = function of x; z(:,i) = function of x; plot(x,y(:,i)) on figure 1, hold all; plot(x,z(:,i)) on figure 2, hold all; ** loop end; add title, legend, etc for figure 1 (NB: we have multiple lines); add title, legend, ets for figure 2 (NB: same, have multiple lines for the legend);`
I tried several combinations without much luck. Managed to get 2 digits, but only the 2nd displays a few lines, not the first. And he cannot understand how to add legends to these 2 correctly.
source share