how to write the equation in matlab as attached in file?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i am unable to write the condition (even odd ) given in equation so help,
0 commentaires
Réponse acceptée
KSSV
le 29 Août 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 commentaire
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!