Save workspace data in text format

조회 수: 2 (최근 30일)
Cristiana Abilheira
Cristiana Abilheira 2019년 4월 5일
댓글: Guillaume 2019년 4월 5일
I developed a script in matlab with a code where the goal is to find a group of coordinates and other stuff...
With the information that I get from the MATLAB program I want to create a notepad like the one in the image bellow
Capturar.PNG
Is a lot of text and information in a notepad... How can I create a file like this from the program information?
  댓글 수: 4
Cristiana Abilheira
Cristiana Abilheira 2019년 4월 5일
yes, unfortunally it has to be writen in notepad because I will use the notepad to run a solver.
Well... I guess I'll have to embrace the challenge
Guillaume
Guillaume 2019년 4월 5일
I'm not sure what you mean by written in notepad. The notepad program that comes with Windows is just a very simple program that allows you to view text files. It's not a particularly good one at that. I assume that you mean it has to be written as text and in the particular format that you give.
Since you don't appear to be very familiar with text files, I'll repeat my warning about character encoding. Every text file assumes a character encoding. The 3 most common ones (for english language) are ASCII, Unicode (which has 3 variants) and if on Windows, the local character encoding, most likely Windows 1252. If you write text in one encoding but the reader assumes a different encoding, some characters will be read wrong. Letters, numbers and basic punctuation is usually the same in all encodings but that weird degree symbol in your screenshot is sure to be particular to one encoding.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by