From: us on
"Matt "
> When I try to make a cell array of markers and do the following
>
> for i=1:length(T)
> markers{i}='-s';
> end
> plot(T{:},markers{:});
>
> I get the following
>
> ??? Error using ==> plot
> Invalid property found.
> Object Name : line
> Property Name : '-s'.
>
>
> Thanks again!

one of the solutions
- also, look at this important doc

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/set.html

cx={[1 4 8 10],1:3};
cy={[10 20 30 40],[5,10,15]};
xy=[cx;cy];
mrk={'s';'o'}; % <- note: col vec...
ph=plot(xy{:});
set(ph,{'marker'},mrk,'color',[1,0,0]); % <- note the diff in syntax...

us
First  |  Prev  | 
Pages: 1 2
Prev: imresize again
Next: Auditory Toolbox (M. Slaney)