我是靠谱客的博主 和谐灯泡,这篇文章主要介绍MATLAB向量画图,现在分享给大家,希望可以做个参考。

close all;clc;clear all;
testpoint=[2 0];
original=[0 0];
% plot
dirextion=[3,3];
quiver(0,0,testpoint(1),testpoint(2),'g','LineWidth',2);
hold on;
quiver(0,0,dirextion(1),dirextion(2),'r','LineWidth',2);
hold on;
afterMul=dirextion'*testpoint;
quiver(0,0,afterMul(1),afterMul(2),'b-','LineWidth',1);
grid on;
legend('Original','Direction','Original^T*Direction')





最后

以上就是和谐灯泡最近收集整理的关于MATLAB向量画图的全部内容,更多相关MATLAB向量画图内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(121)

评论列表共有 0 条评论

立即
投稿
返回
顶部