Why does arrow fail? (R2015a)
조회 수: 3 (최근 30일)
이전 댓글 표시
A simple call to arrow fails on 2015a with:
Undefined operator '*' for input arguments of type 'matlab.graphics.axis.Axes'.
Error in arrow (line 423)
ax = o * gca;
Where on line 412: o = ones(narrows,1);
댓글 수: 1
Star Strider
2015년 7월 22일
If arrow is a FEX submission, note that HG2 ‘broke’ many FEX files that used the more flexible HG1 functionality. If they are not updated to be compatible with HG2 (and I suspect many cannot be), you have to use them with R2014a or earlier.
채택된 답변
Mike Garrity
2015년 7월 22일
I'm not sure what "arrow" is, but that code fragment looks like it's trying to create a vector which holds "narrows" copies of the handle of the current axes. A much more reliable way of doing that would be something like:
ax = repmat(gca,[narrows 1])
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Formatting and Annotation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!