help-octave
[Top][All Lists]
Advanced

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

Re: gnuplot versus matlab plot: a suggestion


From: oxyopes
Subject: Re: gnuplot versus matlab plot: a suggestion
Date: Mon, 16 Jul 2007 12:24:36 +0200

styles = {"+", "*", "o", "x", "r+"};
for i = 1:5
   plot(k, k.^k, styles{k});
endfor


and if i want sth like bellow? I cannot put the names in the graph!

styles = {"+", "*", "o", "x", "r+"};
names ={"a", "b", "c", "d", "e"};
hold on
v = (1:1:10)'
for k = 1:5
     plot( v, v*k , styles{i}; names{i});
endfor


reply via email to

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