Tranfering excel to mat

조회 수: 1 (최근 30일)
Bennett Torrance
Bennett Torrance 2017년 1월 24일
편집: Niels 2017년 1월 24일
I have about 45 data files (all with hundreds of thousands of data points) all in either text format or excel. How to I transfer them from to MAT files in the most efficient way possible? Thanks!

채택된 답변

Niels
Niels 2017년 1월 24일
편집: Niels 2017년 1월 24일
i can think of 1 way, but it can be quite annoying.
you use textscan to read the data from .txt files and xlsread for the excel files. save the data in variables and then use save. the result will be a .mat file. (it may be easier to save them all in the array of one variable)
if the files are located in 1 folder its easier, you can use dir and a for loop

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by