find zero of a custom function
Mostra commenti meno recenti
Hello, I would like to know if it is possible to use fzero for a custom function written using a script. For example: let us suppose I have defined a function f.m which takes 3 arguments f(x,y,z) I know the values of x and y and I want to find the value of z which returns the value of my function 0,
is it possible to use fzero ? if yes could you post a very simple example?
Thanks you Paolo
1 Commento
Paolo
il 7 Dic 2013
Risposta accettata
Più risposte (1)
Walter Roberson
il 5 Dic 2013
fzero( @(z) f(x, y, z), InitialGuessGoesHere )
Categorie
Scopri di più su Numeric Solvers in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
