clear all;
clc;
close all;
x = 1:8;
max_j = 10;
for j = 1:max_j
y = j*x.^2;
str(j)={['Y',num2str(j)]};
h(j) = plot(x,y);
hold on
end
legend(h([1:max_j]),str,'Location','northwest')
clear all;
clc;
close all;
x = 1:8;
max_j = 10;
for j = 1:max_j
y = j*x.^2;
str(j)={['Y',num2str(j)]};
h(j) = plot(x,y);
hold on
end
legend(h([1:max_j]),str,'Location','northwest')