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

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 件のコメント

Doug Hull
Doug Hull 2014 年 10 月 9 日
編集済み: Doug Hull 2014 年 10 月 9 日
>> which -all arrow.m
'arrow.m' not found.
Where did arrow.m come from?
Star Strider
Star Strider 2014 年 10 月 10 日
Graphics handles have changed significantly in R2014b. The author will have to update arrow.m for R2014b and subsequent releases.

サインインしてコメントする。

回答 (2 件)

Doug Hull
Doug Hull 2014 年 10 月 9 日

0 投票

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;

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2014 年 10 月 9 日

コメント済み:

2014 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by