Write an interactive script

3 ビュー (過去 30 日間)
Shi Yuhao
Shi Yuhao 2014 年 4 月 28 日
編集済み: DGM 2025 年 8 月 18 日
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.

回答 (2 件)

Walter Roberson
Walter Roberson 2014 年 4 月 28 日
See "for" and "input". See also fprintf(), dlmwrite(), and save() with the -ascii option.

Neda
Neda 2025 年 8 月 18 日
編集済み: Neda 2025 年 8 月 18 日
Hello,
There is a communication regarding "How can I set the text font style of a Data Cursor object interactively on a plot?". But I am not clear on the answer found in this link:
I do not know how and where to put the recommended commands. Would you please clarfity and give me more details?
Thank you.
  1 件のコメント
DGM
DGM 2025 年 8 月 18 日
I don't know why this is here in an unrelated thread. Either post this as a comment in the original thread or post this as a new question. I can't move it there, you'll have to do it.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by