Fzero function error in matlab
Show older comments
x = fzero(@(x) (707.34/(x-x^2)*(1+0.1*(10.589*(1-x)/x).^0.75)-(x-x^2)*9778.608 , 0.2) % << this equation is my equation
The error sign is below :
x = fzero(@(x) (707.34/(x-x^2)*(1+0.1*(10.589*(1-x)/x).^0.75)-(x-x^2)*9778.608 , 0.2)
↑
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
what is wrong over the equation? please help me genius people!..
somebody help..
Answers (1)
Walter Roberson
on 13 Apr 2021
x = fzero(@(x) (707.34/(x-x^2)*(1+0.1*(10.589*(1-x)/x).^0.75)-(x-x^2)*9778.608 , 0.2)
1 2 1 2 3 2 3 4 5 4 3 2 3 2 1
You are missing one ) character.
Categories
Find more on Debugging and Improving Code in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!