Path: news.mathworks.com!not-for-mail
From: "Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Is it possible to vectorize LineProperties of a plot object?
Date: Wed, 4 Nov 2009 11:36:01 +0000 (UTC)
Organization: Tampere University of Technology
Lines: 14
Message-ID: <hcrov1$r76$1@fred.mathworks.com>
References: <hcqjir$3vf$1@fred.mathworks.com>
Reply-To: "Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257334561 27878 172.30.248.37 (4 Nov 2009 11:36:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 11:36:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 218565
Xref: news.mathworks.com comp.soft-sys.matlab:582329


"Gustavo Morales" <gustavo.morales.2000@gmail.com> wrote in message <hcqjir$3vf$1@fred.mathworks.com>...
> I'd like to do something like this:
> >> X = [1, 2, 3]; Y = [2, 2.5, 2.9]; %for example
> >> plot(X,Y,'o','MarkerSize',[20, 10, 15]);
> 
> but it causes an error:
> ??? Error using ==> plot
> Value must be scalar
> 
> I don't want to use a for loop to asign a MarkerSize to each point (xi,yi).
> I'd like to vectorize this process. ?Is it possible?

One line object can have only one MarkerSize. If you want different sizes you will have to have separate objects for each. Easy to write your own function for that though. 
I may have done the same thing somewhere in past, I think, or something very similar anyway..