textread() for Importing Values into Multi-Column Matrices

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)

답변 (1개)

per isakson
per isakson 2020년 4월 1일
편집: per isakson 2020년 4월 1일

0 개 추천

"is there were a way to specify that the output of the textread" See textscan, 'CollectOutput', true
"Is this possible with textread()?"
  • Note: textread is not recommended. Use textscan instead.
  • Not as far as I know

카테고리

도움말 센터File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

제품

릴리스

R2017b

태그

질문:

2020년 4월 1일

편집:

2020년 4월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by