How to import data into an array from a .txt file

I have a fairly large file in .txt and im simply trying to import it into my code as an array i tried the import data but it would only give me a blank array with NaN in the cells, the array I am trying to import is structured like so,
12 0.0589 14.122 13.2 0.7954 0.004

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 21일

0 개 추천

Use readtable() to read the file

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 12월 21일

답변:

2018년 12월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by