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.

 採用された回答

madhan ravi
madhan ravi 2020 年 10 月 19 日

0 投票

Take that fminsearch() outside of the function
doc function % see how to use functions

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

R2020b

質問済み:

2020 年 10 月 19 日

回答済み:

2020 年 10 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by