nested IF-ELSE statement
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ilmiat
el 14 de Sept. de 2020
Comentada: Image Analyst
el 17 de Sept. de 2020
Please help me solving this matlab code. Thats how the answer should look like:-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/360262/image.png)
1 comentario
Respuesta aceptada
Image Analyst
el 14 de Sept. de 2020
Hint: input(), rem(), sprintf(), while
message = sprintf('>>>>> Enter an integer (0-9)\n blah blah fubar snafu lorem ipsum : ');
Change message passed to input depending on what their input was.
response = '0';
message = sprintf(.....
while response ~= 'x'
response = input(...........
if................
message = ...........
elseif ...........
end
end
See if you can finish it.
5 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown 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!