Hey, I got a function that imports all the text documents from a file and creates a variable with all of them. What I wanted is to get a variable for each document. Here is the code:
dades = ;
fname = '2021030100'+string(sprintf('%00d',i))+'AIS.txt';
temp = importfileAIS(fname)';
dades = [dades', temp]';
How could I do it. I know that all the files go to the same variable(dades) because I wrote it, but I do not know how to write what I asked.