Path: news.mathworks.com!not-for-mail
From: "Kathleen " <quisquiliae2@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to draw an irregular shape on GUI axes?
Date: Thu, 2 Aug 2007 20:49:33 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <f8tg0t$46b$1@fred.mathworks.com>
References: <f8td95$i7t$1@fred.mathworks.com> <f8tenc$hke$1@canopus.cc.umanitoba.ca>
Reply-To: "Kathleen " <quisquiliae2@hotmail.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 1186087773 4299 172.30.248.38 (2 Aug 2007 20:49:33 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Aug 2007 20:49:33 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1057870
Xref: news.mathworks.com comp.soft-sys.matlab:422247


Thanks for your reply, Walter.

I have tried the following code:

    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');

within my draw_plot() function and tried fill() as well. 
However, for both patch() and fill() function calls, I get 
the error:

??? Error using ==> patch [or fill]
Conversion to double from cell is not possible.

As far as I can tell, my code above should work. Any 
suggestions about what I might be doing wrong?

Thanks a lot! :)     Kathleen