| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 433 人关注过本帖
标题:求助matlab绘制曲线
只看楼主 加入收藏
ysg123456789
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-1-7
收藏
 问题点数:0 回复次数:0 
求助matlab绘制曲线
各位大神,请问如何绘制以下曲线,本人是新手。求指教。下面是我做的程序。
alfa=[5 10 15 25 27 30];
i=1;
L=62;
Rd=73.5;
Rc=69.5;
i=1;
j=1;
for i=1:1:6
for j=1:1:720
theta[i][j]=pi*j/360;
end
end
for i=1:1:6
for j=1:1:180
Rdc[i][j]=Rd*sqrt(sin(theta[i][j]^2+(cos(theta(j))*cos(alfa(i)))^2);
delta[i][j]=asin(Rd*sin(theta[i][j])/Rdc-theta[i][j]);
fi[i][j]=asin(Rdc[i][j]*sin(delta[i][j])/sqrt((Rc-Rd*cos(delta[i][j]))^2+(Rdc[i][j]*sin(delta[i][j]))^2));
beta[i][j]=asin(sqrt(Rc^2+Rdc[i][j]^2-2*Rc*Rdc[i][j]*cos(delta[i][j]))/L);
end
for j=181:1:360
Rdc[i][j]=Rd*sqrt(sin(theta[i][j])^2+(cos(theta[i][j])*cos(alfa(i)))^2);
delta[i][j]=-asin(Rd*sin(theta[i][j])/Rdc[i][j]-theta[i][j])-theta[i][j]+pi;
fi[i][j]=asin(Rdc[i][j]*sin(delta[i][j])/sqrt((Rc-Rd*cos(delta[i][j]))^2+(Rdc[i][j]*sin(delta[i][j]))^2));
beta[i][j]=asin(sqrt(Rc^2+Rdc[i][j]^2-2*Rc*Rdc[i][j]*cos(delta[i][j]))/L);
end
for j=361:1:540
Rdc[i][j]=Rd*sqrt(sin(theta[i][j])^2+(cos(theta[i][j])*cos(alfa(i)))^2);
delta[i][j]=-asin(Rd*sin(theta[i][j])/Rdc[i][j]-theta[i][j])-theta[i][j]+pi;
fi[i][j]=asin(Rdc[i][j]*sin(delta[i][j])/sqrt((Rc-Rd*cos(delta[i][j]))^2+(Rdc[i][j]*sin(delta[i][j]))^2));
beta[i][j]=asin(sqrt(Rc^2+Rdc[i][j]^2-2*Rc*Rdc[i][j]*cos(delta[i][j]))/L);
end
for j=541:1:720
Rdc[i][j]=Rd*sqrt(sin(theta[i][j])^2+(cos(theta[i][j])*cos(alfa(i)))^2);
delta[i][j]=asin(Rd*sin(theta[i][j])/Rdc-theta[i][j])-theta[i][j]+2*pi;
fi[i][j]=asin(Rdc[i][j]*sin(delta[i][j])/sqrt((Rc-Rd*cos(delta[i][j]))^2+(Rdc[i][j]*sin(delta[i][j]))^2));
beta[i][j]=asin(sqrt(Rc^2+Rdc[i][j]^2-2*Rc*Rdc[i][j]*cos(delta[i][j]))/L);
end
end
for i=1:1:6
for j=1:1:720
plot(theta[i][j]*360/(2*pi),delta[i][j],theta[i][j]*360/(2*pi),fi[i][j],theta[i][j]*360/(2*pi),beta[i][j]);
hold on;
end
end
搜索更多相关主题的帖子: 曲线 matlab 如何 
2013-01-07 21:43
快速回复:求助matlab绘制曲线
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025020 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved