How to analyse hundreads of excel files (milliseconds data) with Matlab with timeseries?

조회 수: 3 (최근 30일)
I am doing data analysis with timeseries by using matlab with excel files. I have hundreads of csv files which I have to change into "xlsx" files and analyse with matlab by using timeseries. Are there any shortcut for loading the files and writing timeseries function for those hundreads of excel files? Please help me.

채택된 답변

Cris LaPierre
Cris LaPierre 2022년 10월 21일
I would use a filedatastore to load all the data into a single variable (doesn't matter if they are csv or xlsx). You can see an example of how to use one to do this in this video from the Data Processing with MATLAB specialization on Coursera.
Here is the final code from that example. You can modify this to work for your data.
flightsDataStore = fileDatastore("flights*.csv","ReadFcn",@importFlightsData,"UniformRead",true);
flightsAll = readall(flightsDataStore)
Once complete, all the data from all files matching the pattern "flights*.csv" are loaded into the variable flightsAll.
  댓글 수: 6
Cris LaPierre
Cris LaPierre 2022년 10월 21일
I've never worked with ASC files, so can't say for certain, but as long as you can write an import function that can load your files, then yes, it is possible.
You may be interested in this Answer:

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2022년 10월 21일

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by