How to create function
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello I am woundering how you do this function;

I am supposed to do it with
function f = fun(x,y)
something...
end
Thanks in advance!
댓글 수: 3
David K.
2019년 10월 1일
Could you post the code you have and what the error is so that we can help you with that?
If the main problem is that the code you made works outside of a function and not inside, then one of my guesses to what the error could be is that the function and the file name need to be the same. EX. f = fun(x,y) needs to be saved as fun.m
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!