matlab plot multiple lines code example
Example: matlab plotting multiple lines on one graph
y = 0:0.2:1;
for x = 0:0.2:1
hold on
plot(x*ones(size(y)),y, 'Color', 'black')
end
y = 0:0.2:1;
for x = 0:0.2:1
hold on
plot(x*ones(size(y)),y, 'Color', 'black')
end