Write an interactive script
조회 수: 9 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (2개)
Walter Roberson
2014년 4월 28일
See "for" and "input". See also fprintf(), dlmwrite(), and save() with the -ascii option.
댓글 수: 0
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
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 Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!