- 博客(2)
- 收藏
- 关注
原创 Matlab在任意两点之间绘制三维圆柱
此函数可能存在一些不足,请多多指教!function plotcylinder(u1,u2,color_a,r)L=norm(u1-u2);ROD=u2-u1;[X,Y,Z]=cylinder(r,100);x1=X*0;y1=Y*0;z1=Z*0;Z=L*Z-L/2;ROD_midpoint=(u1+u2)/2;x=ROD_midpoint(1);y=ROD_midpoint(...
2019-06-07 21:11:52
3922
8
原创 MATLAB使用subplot绘图调整子图的位置和大小
figure(3)set(gcf,'color',[1 1 1])set(gcf,'position',[150 10 600 800])subplot(221)plot(t1,V_b1(id*3-2,:),'color','r')axis tighth=legend('Case1');set(h,'box','off','fontsize',6,'location','best')...
2019-06-05 15:27:35
43495
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人