Why am I only receiving one value for theta3 and alpha3, do I need to use a "for" loop instead?

1 回表示 (過去 30 日間)
TLove
TLove 2022 年 12 月 2 日
コメント済み: TLove 2022 年 12 月 2 日
theta2=linspace(0,360);
force=zeros(size(theta2));
force (theta2>=0 & theta2<180)=100;
force(theta2>=180 & theta2<=360)=-2000;
theta3=-asind((a*sind(theta2)/b))+180;
omega3=(a*cosd(theta2)*omega2)/(b*cosd(theta3));
alpha3=(a*alpha2*cosd(theta2)-a*omega2^2*sind(theta2)+b*omega3^2*sind(theta3))/(b*cosd(theta3));

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 12 月 2 日
/ is not the division operator in MATLAB. A/B is like inner product of A and the pseudoinverse of B. It is for solving systems of linear equations of the form A = x*B
The division operator is ./

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by