Path: news.mathworks.com!not-for-mail
From: "Gustavo Morales" <gustavo.morales.2000@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Is it possible to vectorize LineProperties of a plot object?
Date: Wed, 4 Nov 2009 00:58:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <hcqjir$3vf$1@fred.mathworks.com>
Reply-To: "Gustavo Morales" <gustavo.morales.2000@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257296283 4079 172.30.248.38 (4 Nov 2009 00:58:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 00:58:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1796991
Xref: news.mathworks.com comp.soft-sys.matlab:582217


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?