Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to create a string array of a text fie

1 回表示 (過去 30 日間)
Nikolay Rodionov
Nikolay Rodionov 2012 年 10 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi all,
After opening a text file in matlab, what is the best command and specifiers to use to create a rectangular string array from the text?
example.txt >>>>
'matlab is the coolest thing ever made
,well besides tacos and corn.asdfdfdd'
so I need to read it into some array call "A"
so that A(1,1:10) = 'matlab is "
I am working with data files with strict data column organization so I know the exact y dimension of each array. The x dimension is unknown. I've tried fread and texscan functions but I haven't gotten what I've wanted. I've probably been trying the wrong specifiers. Any advice? Thanks!

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by