Beginning matlab user error, functions

I am taking a beginning course in MATLAB programming. My textbook was written by a professor using MATLAB 2009b. Perhaps that is irrelevant, but I want to know why I am getting errors trying to inititate functions. The following function code is written as a solution in my textbook.
This might be a novice question, please forgive me.

 Respuesta aceptada

madhan ravi
madhan ravi el 19 de Oct. de 2020
Take that fminsearch() outside of the function
doc function % see how to use functions

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 19 de Oct. de 2020

Respondida:

el 19 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by