Use solve function and return with [0*1 sym]

Hi all,
I want to solve an eqation eq=s-((s - w)*(r + 1)^(1 - 1/y))/b^(1/y)==0
I use solve function in that:
solve(eq,s)
The Matlab, however, return with:
w: [0×1 sym]
y: [0×1 sym]
I just want to solve a basic mathmatical problem and don't know how to display the results that I want (put s on the left hand side of equation)
Thanks for your time.

回答 (1 件)

Torsten
Torsten 2022 年 3 月 29 日

1 投票

syms s w r y b
eq = s-((s - w)*(r + 1)^(1 - 1/y))/b^(1/y)==0 ;
sol = solve(eq,s)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

質問済み:

2022 年 3 月 29 日

回答済み:

2022 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by