how to write the equation in matlab as attached in file?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
ajeet verma
el 29 de Ag. de 2017
i am unable to write the condition (even odd ) given in equation so help,
0 comentarios
Respuesta aceptada
KSSV
el 29 de Ag. de 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 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!