- #1
Larry Gopnik
Gold Member
- 34
- 19
Hi all,
This might be a simple question but I cannot seem to find any solution online
I'm currently building a MatLab code for my project which involves in the ageing of certain artefacts and paintings, I've got most of it built but can't solve the simplest of problems of the start of the code
It requires loading a certain number of .txt files (the number of which the user specifies) into my code. So far I have for this particular part of the code:
j=input('Please input the number of data files');
lw = [400,450,500,550,600,650,700,750,800,880];
for i = 1:j
[filename,path]= uigetfile('*.txt','open .txt file');
end
How do I get it so that there are multiple filenames saved and so that the previous filename isn't overwritten by the new filename?
Basically, the code should make filename1, filename2, filename3 and so on from the loop instead of just one filename which is constantly overwritten...
Thank you
Larry
This might be a simple question but I cannot seem to find any solution online
I'm currently building a MatLab code for my project which involves in the ageing of certain artefacts and paintings, I've got most of it built but can't solve the simplest of problems of the start of the code
It requires loading a certain number of .txt files (the number of which the user specifies) into my code. So far I have for this particular part of the code:
j=input('Please input the number of data files');
lw = [400,450,500,550,600,650,700,750,800,880];
for i = 1:j
[filename,path]= uigetfile('*.txt','open .txt file');
end
How do I get it so that there are multiple filenames saved and so that the previous filename isn't overwritten by the new filename?
Basically, the code should make filename1, filename2, filename3 and so on from the loop instead of just one filename which is constantly overwritten...
Thank you
Larry