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

1 visualización (últimos 30 días)
Yoav Mor
Yoav Mor el 4 de Jun. de 2015
Editada: Yoav Mor el 4 de Jun. de 2015
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 comentarios
Yoav Mor
Yoav Mor el 4 de Jun. de 2015
Editada: Yoav Mor el 4 de Jun. de 2015
This works. But it's far from being an elegant solution. Can anyone find an explanation why the original problem occurs?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Performance and Memory en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by