Is there a way to turn off or suppress bold headers on tables in the Command Window?

When I use diary to save Command Window output to a text file, the table headers all have "</strong>" formatting, which makes it difficult to read in a text editor. Is there a way to have either the Command Window or diary output suppress the bold headers on tables?

 채택된 답변

Anna Weeks
Anna Weeks 2024년 11월 18일
이동: Fangjun Jiang 2025년 2월 13일
disp(formattedDisplayText(my_table,"SuppressMarkup",true))

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2016년 8월 22일
It might not be possible according to the document.
One not-so-perfect workaround is to save the diary to a text file and then show it in Command Window using the "type" command
type diary.txt

댓글 수: 3

Currently, I wrote a script which does a strfind for '<strong>' and '</strong>' and sets every instance = []. However, I'm dealing with 4MB text files at 1400+ pages each, so this script takes about 7 minutes per file on a quad-core 64-bit system with an Intel i7-6820HK @ 2.7 GHz and 32 GB of RAM, running 8 logical processors sharing the load. With hundreds of these files to deal with, I was hoping perhaps there was a better way, such as capturing the Command Window output without the bold table headers in the first place... Thanks!
Is it possible for you to consider other tools, such as UNIX grep/sed?
You could also use perl, which can be invoked directly from MATLAB using the perl() command.

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

카테고리

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

질문:

2016년 8월 22일

이동:

2025년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by