rhs method returning empty sym

I am unable to use the function rhs to extract RHS of symbolic equations
Code written:
syms x; rhs(x==5)
This returns
[ empty sym ]
Is there something that I am missing here?

 Accepted Answer

madhan ravi
madhan ravi on 16 Jun 2020
Edited: madhan ravi on 16 Jun 2020
Possible reason is that you may have created a variable/file named rhs , please clear it.

3 Comments

Yes I entered clearvars and it solved it. Thank you!
Even a probable reason. :)

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2019a

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!