Import data TXT File to Matlab

조회 수: 1 (최근 30일)
Juan Pablo
Juan Pablo 2020년 2월 3일
답변: Jakob B. Nielsen 2020년 2월 4일
Good Night,
I would like to import the data of a TXT file in Matlab. I was using the function 'detectImportOptions', but I couldn't import all the data. Is it possible to import the data of this example DATA_A and DATA_B in two different matrices?
Thanks for your help guys,
CPG2.PNG

답변 (1개)

Jakob B. Nielsen
Jakob B. Nielsen 2020년 2월 4일
You will want to clean up your files a little before importing them; Matlab can understand ; , : tabs and spaces as delimiters, but not multiple at once. Then, take a look at the importdata function, it has all the things you need.

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by