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

1 Ansicht (letzte 30 Tage)
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));

Antworten (1)

Walter Roberson
Walter Roberson am 2 Dez. 2022
/ 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 ./

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by