How to import all files with the same extension from specific folder to Matlab?
Afficher commentaires plus anciens
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
1 commentaire
dpb
le 4 Juin 2014
Format the code to be legible...
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!