Variable Output to Text File
古いコメントを表示
I have 3 columns of data(3X1) saved in CA, TX, FL variables:
CA = [1;2;3]
TX = [4;5;6]
FL = [7;8;9]
I want to generate an output to a* text file* as seen below:
CA TX FL
1 4 7
2 5 8
3 6 9
I have been working with various ways fprintf and etc, but the rows and columns are not lining up. Here is one idea that I have been working with:
Thanks, Amanda
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2013 年 2 月 18 日
編集済み: Azzi Abdelmalek
2013 年 2 月 18 日
Try
dlmwrite('filename',cell2mat(mycell),'delimiter',' ')
カテゴリ
ヘルプ センター および File Exchange で Text Analytics Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!