필터 지우기
필터 지우기

How to write a .tsv file?

조회 수: 67 (최근 30일)
Alba Peris
Alba Peris 2022년 12월 15일
답변: Stephen23 2022년 12월 15일
I wanted to write a cell or a table into a .tsv, however I cannot find the commands needed. How could I do this?
Thanks very much!

채택된 답변

Stephen23
Stephen23 2022년 12월 15일
C = {'hello',1;'world',3.14159}
C = 2×2 cell array
{'hello'} {[ 1]} {'world'} {[3.1416]}
writecell(C,'test.tsv', 'filetype','text', 'delimiter','\t')
Checking:
type test.tsv
hello 1 world 3.14159

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by