how to write the equation in matlab as attached in file?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i am unable to write the condition (even odd ) given in equation so help,
0 Kommentare
Akzeptierte Antwort
KSSV
am 29 Aug. 2017
for i = 1:10
if mod(i,2)
fprintf('%d is odd\n',i)
else
fprintf('%d is even\n',i)
end
end
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!