Why it gives error to matlab's own function

3 ビュー (過去 30 日間)
Stelios Fanourakis
Stelios Fanourakis 2017 年 12 月 12 日
コメント済み: Stelios Fanourakis 2017 年 12 月 12 日
Undefined function 'getAxesTransformationMatrix' for input arguments of type 'matlab.graphics.axis.Axes'. Error in View (line 84) varargout{1} = getAxesTransformationMatrix(hAxes);
It gives me that error when I call View.m which is a predefined function in Matlab R2015a

採用された回答

Steven Lord
Steven Lord 2017 年 12 月 12 日
Which view function are you calling? What does this command return?
which -all view
My suspicion is that you made (or someone else made for you) a copy of view.m outside the directory where the version included with MATLAB is located, and you're calling that copy. That won't work. The view function included in MATLAB depends on at least one function (getAxesTransformationMatrix) that is only accessible to functions in the directory where the view function included with MATLAB lives.
  1 件のコメント
Stelios Fanourakis
Stelios Fanourakis 2017 年 12 月 12 日
You probably are right. I copied and pasted the view.m file to another directory.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by