不是工具缺失,是matlab2014后把图像句柄的类型由double变为了object,所以不能应用乘法运算。Mathwork上已经有人给出解答了,如下:
For everybody that has problems running the current arrow.m version on newer Matlab versions, please follow the corrections suggested by Justin and Brenton from 11 Nov 2014. I adapted them on Matalb R2015a and it works....
Here the suggested changes copied from their posts:
Justin:
Previous: Line 423 ax = o * gca;
Update: ax = repmat(gca,narrows,1);
Previous: Line 590 curT = get(curax,'Xform');
Update: [azA,elA] = view(curax);
curT = viewmtx(azA,elA);
Brenton: Piggy-backing on Justin's edits, update with the following:
LINE 504: oldaxlims(min(find(oldaxlims(:,1)==0)),:) = [ii reshape(axl',1,6)];
LINE 960:
lims = get(ax(oldaxlims(:,1)),{'XLim','YLim','ZLim'})';
LINE 962:
mask = arrow_is2DXY(ax(oldaxlims(:,1)));