- Note: textread is not recommended. Use textscan instead.
- Not as far as I know
textread() for Importing Values into Multi-Column Matrices
3 次查看(过去 30 天)
显示 更早的评论
Is there were a way to specify that the output of the textread function be saved into matrices with more than one column?
Yes:
[mat1(:,1), mat1(:,2), mat1(:,3), mat2, mat3(:,1), mat3(:,2), mat3(:,3), mat4] = textread('myfile.txt', %f %f %f %*s %*s %*s %f %f %f)
0 个评论
回答(1 个)
per isakson
2020-4-1
编辑:per isakson
2020-4-1
"is there were a way to specify that the output of the textread" See textscan, 'CollectOutput', true
"Is this possible with textread()?"
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!