Error calculating matrix operations

1 次查看(过去 30 天)
Hello, i have to calcuate ACCANG, that is:
51496028_401208873986187_241572630291808256_n.jpg
Where:
OA=1.42
AB=4.3
BO=3.33
OO=6
alfa=[19.7000, 10.2615, 0.8231, -8.6154, -18.0538, -27.4923, -36.9308, -46.3692, -55.8077, -65.2462, -74.6846, -84.1231, -93.5615, -103.0000];
beta= [37.3648, 40.5764, 43.6511, 46.4267, 48.7411, 50.4573, 51.4816, 51.7706, 51.3269, 50.1884, 48.4165, 46.0853, 43.2749, 40.0669];
gamma= [-68.0355, -66.333, -63.8261, -60.6513, -56.9882, -53.0279, -48.9467, -44.8871, -40.9515, -37.2048, -33.6824, -30.3996, -27.3598, -24.5623]
w2=[-0.3423, -0.3358, -0.3129, -0.2724, -0.2156, -0.1464, -0.0699, 0.0086, 0.0847, 0.1554, 0.2187, 0.2738, 0.3203, 0.3581]
w3=[-0.1342, -0.2250, -0.3039, -0.3656, -0.4072, -0.4289, -0.4334, -0.4250, -0.4078, -0.3855, -0.3606, -0.3349, -0.3092, -0.2836]
J = [AB*sind(beta(i)) BO*sind(gamma(i)); AB*cosd(beta(i)) BO*cosd(gamma(i))]
The final results, must be 14 2x1 matrix (obviously)
I've tried with this, but it's not correct
ACCANG= (-(Jinv))*([AB*(w2(i))*cosd(beta(i)) BO*(w3(i))*cosd(gamma(i)); -AB*(w2(i))*sind(beta(i)) -BO*(w3(i))*sind(gamma(i))]*[w2; w3]+[OA*sind(alfa(i)); OA*cosd(alfa(i))]+[OA*cosd(alfa(i)); -OA*sind(alfa(i))])

采纳的回答

Torsten
Torsten 2019-2-4
for i=1:14
ACCANG(:,i) = (-(Jinv))*([AB*(w2(i))*cosd(beta(i)), BO*(w3(i))*cosd(gamma(i)); -AB*(w2(i))*sind(beta(i)), -BO*(w3(i))*sind(gamma(i))]*[w2(i); w3(i)]+[OA*sind(alfa(i)); OA*cosd(alfa(i))]+[OA*cosd(alfa(i)); -OA*sind(alfa(i))])
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Gamma Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by