From: Eindhoven Technical University Ayyapureddi on
Hello,

I have 20 data files ( data in 2 vectos ) and I want to plot all of them on one figure. So I am plotting them in a loop. But how would I differentiate them like by using different signs/colors? and along with the legend.

Thank you in-advance,

Regards
A Sridhar.
From: us on
"Eindhoven Technical University Ayyapureddi" <s.ayyapureddi(a)tue.nl> wrote in message <hu0k34$248$1(a)fred.mathworks.com>...
> Hello,
>
> I have 20 data files ( data in 2 vectos ) and I want to plot all of them on one figure. So I am plotting them in a loop. But how would I differentiate them like by using different signs/colors? and along with the legend.
>
> Thank you in-advance,
>
> Regards
> A Sridhar.

one of the solutions

mrk={'o','s','*'}.';
col=jet(3);
lh=plot(rand(16,3)); % <- or lh(i)=line(...) in a loop...
set(lh,...
{'marker'},mrk,...
{'markerfacecolor'},num2cell(col,2),...
{'color'},num2cell(col,2));

us