In a recent blog about the MATLAB solve command, I mentioned that the solve command was not giving us the unique real solution to a physical problem. A user at MATLAB suggested declaring the syms variable as real, before using the solve command. That worked. So if the equation in terms of the variable *b *is eqnb=0, then use

syms b real;

solve (eqnb,b);

____________________________________________

This post is brought to you by Holistic Numerical Methods: Numerical Methods for the STEM undergraduate at http://nm.mathforcollege.com, the textbook on Numerical Methods with Applications available from the lulu storefront, the textbook on Introduction to Programming Concepts Using MATLAB, and the YouTube video lectures available athttp://nm.mathforcollege.com/videos. Subscribe to the blog via a reader or email to stay updated with this blog. Let the information follow you.