How to solve 3 equations dependent each other?
Show older comments
Hello. How to code this situation?

In this situation i need to calculate all angular velocities from time 0s to time 5400s with increase by 0.1s and graph them.
I have all the initial values:
wxi = 0.0065
wyi = 0.0066
wzi = 0.0067
And constant values:
NT = 3.6 * 10^-10
Jx = 2.1 * 10^-3
Jy = 2.0 * 10^-3
Jz = 1.9 * 10^-3
Actually i thought it is going to be easy but when i write the code for wx, i realized that wx is increasing with time but wz and wy in the equation are constant values. Which kind of loop should i use? Thanks for the answers!
5 Comments
Walter Roberson
on 10 Nov 2018
They look to be changing to me. At least one of your J variables would need to be 0 or infinite for a w value to be constant.
hknatas
on 10 Nov 2018
Walter Roberson
on 10 Nov 2018
wz(i+1) = wz(i) + delta_t / Jz * (wx(i) * wy(i) + NT)*(Jx - Jy);
hknatas
on 10 Nov 2018
hknatas
on 10 Nov 2018
Edited: Walter Roberson
on 10 Nov 2018
Accepted Answer
More Answers (0)
Categories
Find more on Unit Conversions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!