Alternative to rhs function

3 ビュー (過去 30 日間)
Luiz Ricardo Almeida
Luiz Ricardo Almeida 2019 年 12 月 4 日
回答済み: Luiz Ricardo Almeida 2020 年 1 月 30 日
Good dusk,
I have a symbolic equation and I want to assign the rhs of it to a variable (this rhs will be a number, but I do not know it a priori), but as I am using matlab R2016b I do not have the rhs function at my disposal.
var = rhs(eqn)
The above line is what I want to do.
What could be a way to do this in my current version?
Best regards.

採用された回答

Luiz Ricardo Almeida
Luiz Ricardo Almeida 2020 年 1 月 30 日
Well, I found out a solution and it is quite embarassing telling what it is.
I just assigned the rhs of the equation to an auxiliary variable, and then I just did
var = auxiliary_var
It is not an alternative to rhs function, but solved my problem.
Sorry for being stupid.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by