Hey,
I was just wondering why HTML tags work in MATLAB and how good of a practice is it to use them.
For example, while using fprintf function I can just use <b>text</b> or <i>text</i> or even <strong>text</strong> to display out bold, italicized and bold texts respectively on the command window.
Example:
fprintf(<strong>Hello World</strong>);
Output: Hello World
So, what is the underlying principle for this?
Also is there any other way I can print out bold or italics text in MATLAB using fprintf?

답변 (1개)

Walter Roberson
Walter Roberson 2021년 3월 8일

0 개 추천

댓글 수: 2

David Beckham
David Beckham 2021년 3월 8일
Thanks.
May I know why do HTML tags work if used with frintf or disp() ?
Rik
Rik 2021년 3월 8일
I would expect the command window parses most basic HTML tags. That is also how documentation links in errors and warnings work.
Did you search the documentation for something related?

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

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2021년 3월 8일

댓글:

Rik
2021년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by