尝试在 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);`
尝试了多种组合,但运气不佳。设法获得 2 个数字,但只有 2-nd 显示多行,而不是第一行。并且无法弄清楚如何正确地为这两个添加图例。