I am looping through a bunch of data and want to use different marker styles (e.g. dots vs. crosses, etc.) for different categories of data. For example, for category A, I use this code:
scatter(ZpercCat(sesh),norm_amp(sesh),'MarkerEdgeColor',rgb, ... 'MarkerFaceColor',rgb)
to plot normal circles, and then I want to use crosses for category B using this code:
scatter(ZpercCat(sesh),norm_amp(sesh),'MarkerEdgeColor',rgb, ... 'MarkerFaceColor',rgb,'markertype','x')
but get the following error:
Error using specgraph.scattergroup/setThe name 'markertype' is not an accessible property for an instance of class'scattergroup'.Error in specgraph.scattergroup (line 26)set(h,args{:});Error in scatter (line 83) h = specgraph.scattergroup('parent',parax,'cdata',c,...
Best Answer