MATLAB: Solve Function returning empy values

solve

I can't figure out why the values returned for each variable is empty. I have 5 equations and 5 unkowns. Where am i going wrong?

Best Answer

  1. We cannot copy and paste code from images of the code in order to test it.
  2. It is a categorical error to use solve() in any equation that containst floating point coefficients. solve() is for finding exact solutions, but floating point numbers are never exact. You want an exact solution, but the gravity you used is not exact: standard g is 9.80665, and g on Earth is measured to be between 9.76392 m/s^2 and 9.83366 m/s^2 https://agupubs.onlinelibrary.wiley.com/doi/full/10.1002/grl.50838 . Exactly where on Earth you are making the calculation for will make a difference to the exact answer -- and exact answers are the only ones you should be using solve() for.
  3. If your parameters are only approximate, you should be using the approximate solver, vpasolve()
Related Question