how to write the equation in matlab as attached in file?
1 次查看(过去 30 天)
显示 更早的评论
i am unable to write the condition (even odd ) given in equation so help,
0 个评论
采纳的回答
KSSV
2017-8-29
for i = 1:10
if mod(i,2)
fprintf('%d is odd\n',i)
else
fprintf('%d is even\n',i)
end
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!