the arrow.m does not work any more in matlab 2014b version.

1 Ansicht (letzte 30 Tage)
Yinping
Yinping am 9 Okt. 2014
Kommentiert: Star Strider am 10 Okt. 2014
After updating Matlab to 2014b, arrow.m is not working. It is stopping in line 423 with the error:
Undefined function 'mtimes' for input arguments of type 'matlab.graphics.axis.Axes'.
Error in arrow (line 423) ax = o * gca;
Does anybody have idea?
  3 Kommentare
Star Strider
Star Strider am 10 Okt. 2014
Graphics handles have changed significantly in R2014b. The author will have to update arrow.m for R2014b and subsequent releases.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Star Strider
Star Strider am 9 Okt. 2014
It has a new home in R2014b. See: Annotation Arrow Properties.

Doug Hull
Doug Hull am 9 Okt. 2014
It looks like it is treating a graphics handle as a double precision number.
It looks like they are pre-allocating a variable by multiplying a handle by 0. When handles were double precision numbers that worked.
Replace that line with
ax = 0;

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by