Import/export a sequence of files
Afficher commentaires plus anciens
I was following the protocol on page 1-13 of this pdf (https://www.mathworks.com/help/pdf_doc/matlab/import_export.pdf) and I keep getting the error "Expected one output from a curly brace or dot indexing expression but there were 9 results". What is wrong? Here is my code:
numFiles = 9;
range = 'A1:B7883';
sheet = 1
myData = cell(1,numFiles);
fileNum = 0:45:360
for i = fileNum
fileName = sprinf('%ddeg_y_polarized.0.dpt',i)
myData{fileNum} = importfile(fileName,sheet,range)
end
2 commentaires
Magdy Saleh
le 5 Juil 2018
Hi, can you please show me what your importfile function looks like?
Thanks
Melissa Klara Kovar
le 5 Juil 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!