フィルターのクリア

Help creating a function

1 回表示 (過去 30 日間)
Laith
Laith 2023 年 10 月 21 日
回答済み: Rik 2023 年 10 月 21 日
Im trying to create a function but i keep the error "not enough input arguments" and i dont know how to fix it. Here is part of my code;
I was told to definite the inputs but i dont know how. What do i do

採用された回答

Rik
Rik 2023 年 10 月 21 日
You need to call your function the same way you call builtin functions. If you use the green triangle, your function will be run without any input arguments.
It is also good practice to resolve all mlint warnings (the orange squiggly lines). There is an option to leave your code as-is and suppress the error, but for the current warnings about your code you shouldn't.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by