我想用绘制箭头功能MATLAB奇异向量,但MATLAB不断给我的错误:如何绘制在MATLAB
Undefined function 'arrow' for input arguments of type 'double'
我该如何解决这个问题?
这里是MATLAB代码:
function Plot_Singular_Vecor()
A=[1 1;2 3];
[U,S,V] = svd(A); % Find singular value decomposition.
figure;
theta = -pi:pi/50:pi;
circle = [cos(theta); sin(theta)];
plot(circle(1,:), circle(2,:), 'r'), grid
title('Right Singular Vectors, u1 and u2')
hold on;
arrow([0,0], [V(1,1), V(2,1)])
非常感谢! – Ming
@Hello_World一定要接受这个答案,如果它解决了你的问题。 – slayton