help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie] Setting different legends for each plot


From: Jean Dubois
Subject: [newbie] Setting different legends for each plot
Date: Mon, 25 Nov 2013 17:09:18 +0100

I try to get a different legend for each value of the for-loop-variable acl0
something like ACL1, ACL2, ACL3, ...
As it is now, the same legend is plotted for each run...can anyone here help me with this?


clear
beta=[0.1:0.1:10];
for acl0=1:10
arrayname=sprintf('deltaprocacl_%d',acl0)
arrayname=100*beta./(1+beta+acl0);
plot(beta,arrayname,";acl0;")
hold on
xlabel 'beta'
ylabel 'procerror'
grid on
endfor

p.s. different colors or graph-types for each run would also be great

thanks in advance
jean

reply via email to

[Prev in Thread] Current Thread [Next in Thread]