Wrong result for "Fill" function (Matlab R2014b and later)

1 view (last 30 days)
Run this code on Matlab R2014b and later (HG2). One of the bars is not filled. This works properly on older versions of Matlab. How should I fix this?
x = [0,-2891.82,-2669.33,0,-2754.89,-2504.30,0]; y = [0,-2426.52,-2669.33,0,-2754.89,-2984.51,0]; figure();fill(x,y,'y')
  3 Comments
Yoav Mor
Yoav Mor on 4 Jun 2015
Edited: Yoav Mor on 4 Jun 2015
This works. But it's far from being an elegant solution. Can anyone find an explanation why the original problem occurs?

Sign in to comment.

Answers (0)

Categories

Find more on Performance and Memory in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!