Ask for help to solve the question.

28 visualizzazioni (ultimi 30 giorni)
Shi Yuhao
Shi Yuhao il 28 Apr 2014
Modificato: DGM il 10 Apr 2024 alle 2:50
write a script 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 times. After the 10th iteration the script should save all the input numbers to a text file in a human readable form.
I have no idea to do it.

Risposte (1)

Walter Roberson
Walter Roberson il 28 Apr 2014
See "for" and "input". See also fprintf(), dlmwrite(), and save() with the -ascii option.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by