Hi, I am new to matlab and i have been asked to create a function that takes a number as an input, and returns logical 1 for true if the input arguement is divisible by 4 and false if not thanks

3 次查看(过去 30 天)
Hi, I am new to matlab and i have been asked to create a function that takes a number as an input, and returns logical 1 for true if the input arguement is divisible by 4 and false if not
thanks

回答(1 个)

madhan ravi
madhan ravi 2021-2-1
Let’s start:
help function
help mod
help if

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by