Why did I get different print format in the output txt file?

조회 수: 1 (최근 30일)
Benson Gou
Benson Gou 2020년 7월 13일
댓글: Walter Roberson 2020년 8월 2일
Dear All,
I used Matlab compiler to generate a standalone application exe file. I then tested it in 3 different computers. I obtained good printing format in the result txt file using my iMac and new Dell (2019), but obtained bad printing format in the result txt file using my old Dell (2015). I copied parts of the results from different computers and compare them as follows:
I. iMac and new Dell
II. Old Dell
I am wondering why the alignment of columns when using my old Dell are Not as good as those when used my iMac and new dell. How can I fix this problem?
Thanks.
Benson

채택된 답변

Stephen23
Stephen23 2020년 7월 13일
편집: Stephen23 2020년 7월 13일
"I am wondering why the alignment of columns when using my old Dell are Not as good as those when used my iMac and new dell."
This has absolutely nothing to do with MATLAB.
It is because you are not using a fixed-width (aka monospaced) typeface in that text editor.
"How can I fix this problem?"
Change the text editor to use a fixed-width font, e.g. Consolas or Courier or PT Mono (which is what your first screenshot appears to show, whereas the second screenshot appears to show Arial, which is a variable-width typeface).
In MS Notepad change the font via menus Format -> Font... and then select the font.
  댓글 수: 9
Walter Roberson
Walter Roberson 2020년 7월 14일
Perhaps you should be using Report Generator.
Walter Roberson
Walter Roberson 2020년 8월 2일
An increasing number of "binary" file formats turn out to be compressed text file formats -- combining the smaller size of binary with the flexibility of processing the text.
However, there are some contexts such as CDF and HDF5 file formats that are structured binary files that are not text. Some of those standardized binary file formats have advantages in being more consistent in making the metadata more explicit -- for example being much more clear as to how the files represent time.
MATLAB -v7.3 files are HDF5 files underneath, but the structure of HDF5 files is not an especially good match for structured compound data types like MATLAB uses, so -v7.3 .mat files can be much larger and slower than the proprietary -v7 format.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by