필터 지우기
필터 지우기

the best way to save .txt

조회 수: 10 (최근 30일)
Luca Re
Luca Re 2023년 6월 8일
답변: Walter Roberson 2023년 6월 9일
hI,
i want to load this data (the values ​​will be loaded into the app designer) and when i close matlab save the updated data
(the data is small size of 15 lines)
what is the best way to save them? if it's .mat do I have to first save them in a .txt file and then upload them?

답변 (2개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2023년 6월 9일
편집: Walter Roberson 2023년 6월 9일
While I cannot definitively claim that it is the absolute best, as "best" is subjective and varies depending on individual perspectives, I can suggest following way to consider.
Write data into text file "fprintf"

Walter Roberson
Walter Roberson 2023년 6월 9일
You could consider using readcell and writecell
... but sometimes the easiest way is just to fopen / fprintf / fclose

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by