Im having a problem with finding the zeros of a sin function in a certain domain
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ivan
am 28 Sep. 2014
Beantwortet: Star Strider
am 28 Sep. 2014
Here is my code
g=inline('sin(x)-(3x/2)')
Zero_g=fzero(g,[-pi,2*pi])
0 Kommentare
Akzeptierte Antwort
Star Strider
am 28 Sep. 2014
Small typo errors in ‘g’ (missing multiplication operator and missing input argument variable declaration). I replaced it with an anonymous function:
g = @(x) sin(x)-(3*x/2);
Zero_g = fzero(g, [-pi 2*pi])
It works.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Decomposition finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!