how to write the equation in matlab as attached in file?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
i am unable to write the condition (even odd ) given in equation so help,
0 Commenti
Risposta accettata
KSSV
il 29 Ago 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 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!