Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to write a script to display an input of 10 times?

1 visualización (últimos 30 días)
Kong
Kong el 13 de Nov. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Write a script to ask the user to input an integer number between 0 and 255, and output the number to the screen between the characters '<' and '>'. This input and display operation should be repeated 10 for 10 times. After the 10th iteration the script should save all the input numbers to a text file in a human readable form.
Develop a user function to do the following check for each number entered: If the number entered is bigger than 255, the script should print a message " error: value too big." to the screen. If a negative number is entered, no matter what is the exact number, the script should convert it to -1.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by