Importing and transposing a Text file
古いコメントを表示
How would I go about both importing and transposing a text file... so far I have this
fileID= fopen('C:\Users\Owner\Matlab_code\data\')
C=textscan(filename, 'format', 'param')
I want it to read in all subjects and all conditions, so would I then put a for loop?
for s=1:15 for: c=1:4 end end
1 件のコメント
Matt Tearle
2011 年 2 月 28 日
Can you show the format of the file? What kind of structure do you want the imported & transposed data to have? A cell array where every cell is a single entry? Numeric?
回答 (1 件)
Oleg Komarov
2011 年 2 月 28 日
0 投票
Also:
- Post the first 3-4 lines of the file you want to import
- fopen(...) should put the fullpath inside not only to the directory
Oleg
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!