How to import all files with the same extension from specific folder to Matlab?

Dear Sirs, I have problem I need to import all files with .mat extensions to Matlab? As you can see
folder='.\Kangwon\RUN\U\Dynamics\output'
read_data_in_folder(folder)
folder='.\Kangwon\RUN\U\Dynamics\output'
read_data_in_folder(folder)
load('D:\THESIS\My file\Kangwon\RUN\U\Dynamics\output\YawShearUptiltObserver_19ms_s0.0_y-12_u0_MDT.mat')
MDT
plot(MDT.Time,MDT.Blade1RotatingPitchableRootForcesMy)
older='Kangwon\RUN\U\Dynamics\output'
read_data_in_folder(folder)
load('D:\THESIS\My file\Kangwon\RUN\U\Dynamics\output\YawShearUptiltObserver_19ms_s0.0_y-4_u0_MDT.mat')
MDT
plot(MDT.Time, MDT.Blade1RotatingPitchableRootForcesMy)
load('D:\THESIS\My file\Kangwon\RUN\U\Dynamics\output\YawShearUptiltObserver_19ms_s0.0_y-4_u0_SWP.mat')
SWP
Here I just have one file YawShearUptiltObserver_19ms_s0.0_y-4_u0_SWP.mat I need to import all files D:\THESIS\My file\Kangwon\RUN\U\Dynamics\output\*.mat
How to do it? Thank you

 Réponse acceptée

...I need to import all files D:\THESIS\My file\Kangwon\RUN\U\Dynamics\output\*.mat
See the FAQ
The dir solution is made to order for the question/problem...

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange

Question posée :

le 3 Juin 2014

Commenté :

le 18 Juin 2014

Community Treasure Hunt

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

Start Hunting!

Translated by