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