Home > Back-end >  Simple calculation problem of matlab
Simple calculation problem of matlab

Time:11-12

Bosses, I have a question,
Matlab to calculate this, w1 is fixed, the x1 value respectively, and the range is 0 to 360 degrees and then calculate the value of the other, and finally calculate the result drawing, said the x1 to x1:0:1:36 0 is empty, what ah, only given x1 fixed value can calculate
Syms x1 x2 x3 x4, x5 h w1 w2 w3 w4 w5 a2, a3, a4 a5
X1=45 w1=1
[x2, x3, x4, x5, h]=solve ([10 * cos (x4) + 40 * cos (x5)==40], [10 * sin (x4) + 30==40 * sin (x5) + h], [- 10 * cos (x1) + 60 * cos (x2) + 80 * cos (x5)==110], [10 * sin (x1) + 60 * sin (x2)==h + 80 * sin (x5)], [- 10 * cos (x1) + 60 * cos (x2) + 40 * cos (x3) - 10 * cos (x4)==70], [x2, x3, x4, x5, h])
[w2, w3, w4, w5]=vpasolve (w4 [10 * * cos (x4)==40 * w5 * cos (x5)], [10 * * sin w1 w2 (x1) - 60 * * sin (x2) w5-80 * * sin (x5)==0], [10 * * cos w1 w2 (x1) + 60 * * cos (x2)==80 * w5 * cos (x5)], [10 * * sin w1 w2 (x1) - 60 * * sin (x2) - 40 * w3 * sin (x3) + 10 * w4 * sin (x4)==0], [w2, w3, w4, w5])
[a2, a3, a4, a5]=vpasolve ([- 10 (w4 ^ 2) * sin (x4) + 10 * a4 * cos a5 (x4)==40 * * cos (x5) - 40 * (w5 ^ 2) * sin (x5)], [10 * w1 ^ 2 * cos (x1) - 60 * a2 * sin (x2) - 60 * (w2 ^ 2) * cos a5 (x2) - 80 * * sin (x5) - 80 * (w5 ^ 2) * cos (x5)==0], [^ 2), (w1-10 * * sin (x1) a2 + 60 * 60 * * cos (x2) - (w2 ^ 2) * sin (x2)==80 * a5 * cos (x5) w5-80 * ^ 2 * sin (x5)], [10 * w1 ^ 2 * cos (x1) - 60 * w2 ^ 2 * cos (x2) - 60 * a2 * sin (x2) - 40 * a3 * sin (x3) - 40 * w3 ^ 2 cos (x3) + 10 * a4 * sin (x4) + 10 w4 ^ 2 * cos (x4)==0], [a2, a3, a4, a5])
  • Related