필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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

채택된 답변

Iain
Iain 2013년 6월 5일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by