Prev: ndft (non-uniform discrete fourier transform) and reconstructing
Next: Placing a Pop-up Menu in a cell inside a uitable
From: Geoff Dong on 27 May 2010 10:30 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 27 May 2010 10:44 "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 27 May 2010 11:16
"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 |