Azzera filtri
Azzera filtri

To David Sanchez. Thank you very much for the answer. If you don't mind please elaborate it.

2 visualizzazioni (ultimi 30 giorni)
I use windows7. This is the place where I saved my data files. 'C:\Users\SRINATH KOMPELLA\Documents\MATLAB\Data. Inside the folder Data. Names of the data files are like this ioutput0257.dat , ioutput0462.dat, ioutput0488.dat, ioutput0645.dat, ioutput0798.dat, ioutput0825.dat. These are randomly picked examples. The actual files are named from 0001 to 0900. In each data file there are nx8 arrays (where n is a varying number of the order 1000). Of those,I have to pick up the 3th and 5th column as input for my program. You can also write to my mail. srinathkompella1993@gmail.com

Risposta accettata

Iain
Iain il 5 Giu 2013
a = dir('C:\Users....\Data\*.dat');
for i = 1:numel(a)
filename = ['C:\Users...\Data\' a(i).name];
... code to read filename (you know the format)
needed_data = read_data(:,[3 5]);
... code to pass the needed data to the program, or stack it in a matrix...
end

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by