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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by