octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with fill() compatibility


From: Przemek Klosowski
Subject: Re: Help with fill() compatibility
Date: Fri, 28 Oct 2016 12:28:26 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 10/28/2016 11:08 AM, Rik wrote:
Could someone run the following code under Matlab and report the result?

-- Code --
t = (1/16:1/8:1)'*2*pi;
x = cos(t);
y = sin(t);
x2 = [x+0.5, x+1.0];
y2 = [y+0.5, y+1.0];

h = fill (x,y,'b',x2,y2,'g');
numel (h)
-- End Code --

The return value should be either 2 or 3 depending on whether Matlab
creates one patch object per dataset (x and x2) or one patch per polygon
(one column in x and two columns in x2).
Matlab 8.6.0.267246 (R2015b) puts out      ans = 3    

reply via email to

[Prev in Thread] Current Thread [Next in Thread]