fopen function word altering loop

1 vue (au cours des 30 derniers jours)
charlotte wilson
charlotte wilson le 16 Avr 2016
Modifié(e) : Stephen23 le 16 Avr 2016
I am very new to matlab and I was love some help.
I have a set of data which is in the form 'Data_JAN.dat' and it goes from Jan-Dec and I want to create a loop which I can text scan them all and create a graph from each set of data. However I am haveing issues with the fopen in the loop and I was wondering if it is possible to create a loop which alters the name of the file being open.
This is the code i have for opening and reading one file:
fileID = fopen('Data_JAN.dat');
C = textscan(fileID,'%{dd MMM yyyy}D %{HH:mm:ss}D %4.2f');
fclose(fileID);
celldisp(C)

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Avr 2016

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by