Input file names into a function inside a loop ?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Fatima Ramadan
el 1 de Nov. de 2018
Respondida: Walter Roberson
el 1 de Nov. de 2018
hello,
I am using a function that takes a filename as input and I trying to create a loop, whereby successive files of a certain folder are inputted to the function.
My code looks like this
info = dir('...');
names_cell = {info.name};
[acc, dt, np] = fn_readPEER_inputFile_old(names_cell(1));
I am getting an error that "Function is not defined for 'cell' inputs". any suggestions on how i can solve this ?
thanks!
0 comentarios
Respuesta aceptada
Walter Roberson
el 1 de Nov. de 2018
[acc, dt, np] = fn_readPEER_inputFile_old(names_cell{1});
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!