Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to draw an irregular shape on GUI axes?
Date: Thu, 2 Aug 2007 22:35:27 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 14
Message-ID: <f8tm7f$5gf$1@fred.mathworks.com>
References: <f8td95$i7t$1@fred.mathworks.com> <f8tenc$hke$1@canopus.cc.umanitoba.ca> <f8tg0t$46b$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
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 1186094127 5647 172.30.248.37 (2 Aug 2007 22:35:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Aug 2007 22:35:27 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:422265


Kathleen:
<SNIP down to syntax error...

>     X = {-0.5, -0.2,-0.1,-0.4, -0.6, -0.5};
>     Y = {-0.15, 0.1, 0.4, 0.5, 0.2, -0.15};
>     patch(X, Y, 'c');

must read

     x={-0.5, -0.2,-0.1,-0.4, -0.6, -0.5};
     y={-0.15, 0.1, 0.4, 0.5, 0.2, -0.15};
     patch([x{:}],[y{:}],'c');

us