|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
本帖最后由 eecsseudl 于 2013-4-29 10:06 编辑
當Tac 和 Tab 都小於2000時,請問如何找到 L 的最小值?
再加一個 While Loop?
L=3:0.1:6.7;
th = acos((45-L.^2)/36);
ph = asin((6*sin(th))./L);
j=1;
Tab = 2000./(sin(th)+cos(th).*tan(ph));
if Tab<2000 then
Tac = (2000.*cos(th))./(sin(th)+cos(th).*tan(ph));
if Tac<2000 then
ARRAY(j)=(L,Tab,Tac)
j=j+1;
end
end
plot(ARRAY(:,1),ARRAY(:,2),'m',ARRAY(:... of AC'),ylabel('Tension'),title('Tension Plot');
legend('Tab','Tac');
|
|