Help w/fill function

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Help w/fill function

Rik-4
All,

Could someone try the following code with Matlab and report whether it
produces an error or not?

 x = [0 0
      1 0.5
      1 0.5
      0 0];
 y = [0 0
      0 0
      1 0.5
      1 0.5];
 c = [1 2 3 4]';
fill (x,y, [c, c])

According to the documentation, if a column vector is used the result
should be expanded to the necessary matrix size, but it doesn't appear to
be happening that way in the dump_demos script.  It looks like we need to
work around their documented, but unimplemented, behavior.

--Rik

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help w/fill function

NJank
On Wed, Aug 17, 2016 at 12:59 PM, Rik <[hidden email]> wrote:
All,

Could someone try the following code with Matlab and report whether it
produces an error or not?


Matlab 2016a, no errors. Nice Yellow and Blue box in a box gradient plot.
Loading...