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
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 Exchange에서 Symbolic 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