I want to solve x, and it shows the warning messege "Unable to solve symbolically". It tells me to use vpasolve, but I don't want the "0" answer. Below is my code.
>syms x real;
>sol = solve(sin(x)==0.703*x,x);
What should I do to solve x?
Thanks

 採用された回答

Torsten
Torsten 2018 年 10 月 29 日

1 投票

x0 = [1 2];
fun = @(x)sin(x)-0.703*x;
sol = fzero(fun,x0)

2 件のコメント

Roger Jiang
Roger Jiang 2018 年 10 月 29 日
Thanks for your answer. However, I don't know what are the meaning of "@(x)" and "fzero". Would you like to explain? Thanks alot
Torsten
Torsten 2018 年 10 月 29 日
help functionhandle
help fzero

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 10 月 29 日

1 投票

Use vpasolve with a third parameter that gives a starting point or search range.

カテゴリ

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

質問済み:

2018 年 10 月 29 日

コメント済み:

2018 年 10 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by