24小时热门版块排行榜    

CyRhmU.jpeg
查看: 5004  |  回复: 2

zyw0816

木虫 (小有名气)

[求助] MATLAB画剖面图

n=10000;
t1=(-170+340*rand(n,1))*pi/180;
t2=(-50+120*rand(n,1))*pi/180;
t3=(-90+180*rand(n,1))*pi/180;
t4=(-150+130*rand(n,1))*pi/180;
x=200*cos(t1).*cos(t2).*cos(t3)-sin(t1).*sin(t3)).*cos(t4)-200*cos(t1).*sin(t2).*sin(t4)+650
y=200*sin(t1).*cos(t2).*cos(t3)+cos(t1).*sin(t3)).*cos(t4)-200*sin(t1).*sin(t2).*sin(t4)+650*sin(t1).*cos(t2).*cos(t3)
z=-200*sin(t2).*cos(t3).*cos(t4)-200*cos(t2).*sin(t4)+650*sin(t2).*cos(t3).*sin(t4)-650*cos(t2).*cos(t4)+98*sin(t2).*sin(t3)+676*cos(t2);
figure
plot3(x,y,z,'*')
求z=固定值时的截面图
回复此楼

» 猜你喜欢

机械设计,汽车
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

saaya

新虫 (初入文坛)

代码好像有问题

» 本帖已获得的红花(最新10朵)

2楼2016-03-29 20:09:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zyw0816

木虫 (小有名气)

送红花一朵
引用回帖:
2楼: Originally posted by saaya at 2016-03-29 20:09:38
代码好像有问题

什么问题,求大神指教

发自小木虫Android客户端
机械设计,汽车
3楼2016-03-29 23:05:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zyw0816 的主题更新
信息提示
请填处理意见