Error calculating matrix operations

조회 수: 5 (최근 30일)
pablolama
pablolama 2019년 2월 4일
답변: Torsten 2019년 2월 4일
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))])
  댓글 수: 1
Bob Thompson
Bob Thompson 2019년 2월 4일
What is the specific error you received?

댓글을 달려면 로그인하십시오.

채택된 답변

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