I have to plot multiple graphs on the same plot reading .sgl files ; the code i have is as follows; I am not sure how to make it read every file in turn; thanks
Mostra commenti meno recenti
for i=1:size(filelist,1) sgl=read_hsgl_riff('P*.sgl'); sgl.format; sgl.data; x=sgl.data(:,1); y=sgl.data(:,2); plot(x,y); hold on; end
Risposte (1)
If filelist is a cell array of your filenames, use
for i = 1:numel(filelist9
sgl=read_hsgl_riff(filelist{i});
% more code here
end
1 Commento
RB
il 20 Lug 2016
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!