How do I Create a function named “evennum” that returns 2 if its argument is even, and 1 if its argument is odd, using either the built in mod or floor functions on MATLAB?
조회 수: 3 (최근 30일)
이전 댓글 표시
I am totally new to MATLAB and am unsure of how to tackle this problem. Any suggestions?
댓글 수: 1
Geoff Hayes
2020년 6월 4일
Victoria - see Declare function name, inputs, and outputs for details on how to create a function. Also, see Start learning MATLAB and Simulink with free tutorials.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!