MATLAB: If N is given and I need to make a choice for a1, then using if else statements how should I apply the following condition:

divisibilityfor loopimage analysis

(a1,N) = 1, if 2 does not divide N or 4 divides N

Best Answer

hint: mod(N,2)
Related Question