% filename: plane_plot.m
% version: 7.6.0.324 (R2008a)
plane_plot([1 2 4],[3 3 1]);
function plane_plot(n1,n2,n)
if nargin<3
n=10;
end
s=bsxfun(@times,[n1,n2],((0:n-1)/(n-1))');
x=bsxfun(@plus,s(:,1),s(:,4)');
y=bsxfun(@plus,s(:,2),s(:,5)');
z=bsxfun(@plus,s(:,3),s(:,6)');
mesh(x,y,z);
line('xdata',[0,n1(1)],'ydata',[0,n1(2)],'zdata',[0,n1(3)],'color','r','linewidth',1);
line('xdata',[0,n2(1)],'ydata',[0,n2(2)],'zdata',[0,n2(3)],'color','r','linewidth',1);
end

标签:function,plot,version,0.324,中用,filename,plane,matlab,向量
来源: https://www.cnblogs.com/yibeimingyue/p/14465290.html
最后
以上就是幸福小白菜最近收集整理的关于matlab 多个平面,matlab中用两个方向向量画平面的全部内容,更多相关matlab内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复