Get the input text bold

조회 수: 13 (최근 30일)
Anders Bartley Hallingstad
Anders Bartley Hallingstad 2016년 9월 29일
답변: Walter Roberson 2016년 9월 29일
Hey,
I would like the input, the numbers, to appear Bold in the command window. Any ideas? Attached screen print of code. (Excuse the norwegian). Feel free to comment any other piece of the code! Thanks

채택된 답변

Walter Roberson
Walter Roberson 2016년 9월 29일
That is not possible in MATLAB, not at the time of input.
What is possible is displaying text to the command window with some of it being bold and some of it not. To do that use cprintf() from the File Exchange. That is, after you got the inputs from the user, you could redisplay the prompts and associated input.
Note: cprintf() is not suitable for writing to files, only to the command window. And if your goal is to use the "publish" function then I suspect it is not an appropriate solution.

추가 답변 (1개)

Massimo Zanetti
Massimo Zanetti 2016년 9월 29일
Open MATLAB, select the HOME tab, click on PREFERENCES. On the left of the window appearing, click on FONTS and select what you prefer.
  댓글 수: 1
Anders Bartley Hallingstad
Anders Bartley Hallingstad 2016년 9월 29일
Thank you. But i only want the user inputs to appear bold after input, not the entire text in the command window. Like on the attached picutre.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scripts에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by