From: Geoff Dong on
Hello All

I have a simple (I think!) question related to plotting random markers.

I have about 10 groups of data, and i want to plot them on the same plot but using different colors and markers. I can solve the color problem but not the random marker problem. Any helps here would be much appreciated.

Many thanks!

Geoff
From: us on
"Geoff Dong" <yanjie.dong(a)hyderconsulting.com> wrote in message <htlvm2$igg$1(a)fred.mathworks.com>...
> Hello All
>
> I have a simple (I think!) question related to plotting random markers.
>
> I have about 10 groups of data, and i want to plot them on the same plot but using different colors and markers. I can solve the color problem but not the random marker problem. Any helps here would be much appreciated.
>
> Many thanks!
>
> Geoff

one of the solutions

mrk={'o','s','*'}.';
col=jet(3);
lh=plot(rand(16,3));
set(lh,...
{'marker'},mrk,...
{'markerfacecolor'},num2cell(col,2),...
{'color'},num2cell(col,2));

us
From: Geoff Dong on
"us " <us(a)neurol.unizh.ch> wrote in message <htm0fl$i0a$1(a)fred.mathworks.com>...
> "Geoff Dong" <yanjie.dong(a)hyderconsulting.com> wrote in message <htlvm2$igg$1(a)fred.mathworks.com>...
> > Hello All
> >
> > I have a simple (I think!) question related to plotting random markers.
> >
> > I have about 10 groups of data, and i want to plot them on the same plot but using different colors and markers. I can solve the color problem but not the random marker problem. Any helps here would be much appreciated.
> >
> > Many thanks!
> >
> > Geoff
>
> one of the solutions
>
> mrk={'o','s','*'}.';
> col=jet(3);
> lh=plot(rand(16,3));
> set(lh,...
> {'marker'},mrk,...
> {'markerfacecolor'},num2cell(col,2),...
> {'color'},num2cell(col,2));
>
> us

Thank you 'us'. You are a star.

Geoff