필터 지우기
필터 지우기

export txt with text and numers

조회 수: 1 (최근 30일)
Simon Lind
Simon Lind 2020년 12월 8일
답변: dpb 2020년 12월 8일
I wasn't able to find a similar question already aswered.
I need to generate a .txt file in the format below. It has to include a text (name) a single value, two values separated by a semicolon, an entire, and then two vectors separated by a semicolon.
name
27.96
1900;01
12
110.70;14.30
100.50;20.50
...
thank you in advance

답변 (1개)

dpb
dpb 2020년 12월 8일
Does seem as though TMW has ignored such in terms of prepared functions; probably because there is no limit to the possiblilities. But, there are examples in the doc --
https://www.mathworks.com/help/matlab/import_export/writing-to-text-data-files-with-low-level-io.html
There's also newer functions writecell, writetable that can be used to purpose.

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by