Create a different output for every document that is imported
Mostra commenti meno recenti
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 = [];
for i=0:1:23
%x=sprintf('%00d',i)
fname = '2021030100'+string(sprintf('%00d',i))+'AIS.txt';
temp = importfileAIS(fname)';
dades = [dades', temp]';
end
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.
3 Commenti
flashpode
il 19 Set 2021
Why don't just create a matrix? Each column is a variable
dades = [dades temp(:)];
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Time Series Objects 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!