채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 27일
편집: Ameer Hamza 2020년 9월 27일

0 개 추천

Although this equation is linear is x, and you can write the equation of x. For a general case, you can use fsolve()
c = 0.0038416;
f = @(x) c - 0.1*(x-sqrt(c/2));
x = fsolve(f, 0);
If you have the symbolic toolbox
syms x
c = 0.0038416;
eq = c == 0.1*(x-sqrt(c/2));
x = double(solve(eq))

댓글 수: 2

Walter Roberson
Walter Roberson 2020년 9월 27일
I think you missed the sqrt() in the symbolic part?
Ameer Hamza
Ameer Hamza 2020년 9월 27일
Thanks for pointing out. OP kept changing the question initially, so I forgot to make the change in the symbolic part.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2020년 9월 27일

댓글:

2020년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by