MATLAB: How to write the equation in matlab as attached in file

digital image processingdigital signal processingimage processingmathematicsMATLABmatlab codersignal processing

i am unable to write the condition (even odd ) given in equation so help,

Best Answer

for i = 1:10
if mod(i,2)
fprintf('%d is odd\n',i)
else
fprintf('%d is even\n',i)
end
end