1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| if(nbr_spectre==0)
nbr_spectre=1;
[fileName,DataDir]=uigetfile({'*.csv';'*.CSV*'},'Lecture Data SM');
sample = importdata(strcat(DataDir,fileName))
liste_spectre(1)={fileName};
files(1) = {strcat(DataDir,fileName)};
set(handles.combo_spectre,'String',liste_spectre);
else
nbr_spectre=nbr_spectre+1;
[fileName,DataDir]=uigetfile({'*.csv','*.CSV'},'Lecture Data SM');
liste_spectre(nbr_spectre)={fileName};
files(nbr_spectre) = {strcat(DataDir,fileName)};
set(handles.combo_spectre,'String',liste_spectre);
end |
Partager