以下代码绘制的矢量已断开连接,而它们应该相互接触。这是一个错误还是我错过了什么?
quiver3(0,0,0,50,50,50);
text(30,30,30,' \leftarrow Views and Eq. returns','FontSize',11, 'FontWeight','bold', 'FontName', 'Palatino Linotype')
hold on
quiver3(0,0,0, 50, 50, 0);
text(30,30,0,' \leftarrow Expected returns (projection/unknows)','FontSize',11, 'FontWeight','bold', 'FontName', 'Palatino Linotype')
quiver3(50,50,0, 0, 0, 50);
grid on
答案 0 :(得分:1)
我在R2013a中得到了同样的东西。尝试设置scale参数,即可选的第七个参数,等于1:
figure;
quiver3(0,0,0, 50,50,50, 1);
text(30,30,30,' \leftarrow Views and Eq. returns','FontSize',11, 'FontWeight','bold', 'FontName', 'Palatino Linotype')
hold on
quiver3(0,0,0, 50,50,0, 1);
text(30,30,0,' \leftarrow Expected returns (projection/unknows)','FontSize',11, 'FontWeight','bold', 'FontName', 'Palatino Linotype')
quiver3(50,50,0, 0,0,50, 1);
grid on
根据documentation,可以使用一些自动缩放。不知道为什么默认不是一个。您还可以尝试使用比例值零来禁用缩放 - 这对您的应用程序类型甚至可能更安全。