how to read data from characters?
Mostrar comentarios más antiguos
Hi all,
I am trying to read the variables from the list of characters those are saved as .mat file 'attached screenshot.' each of those .mat file has sst, lat, lon. I could not find a proper way to get the data by using the for loop.
for N = 1:nfiles;
filename = [flist(N).name];
disp(['Processing ', flist(N).name]);
end
Any help will be appreciated :(
thanks
1 comentario
Stephen23
el 18 de Dic. de 2018
Note that square brackets are a concatenation operator in MATLAB, so they are completely redundent on this line (you are not concatenating anything):
filename = [flist(N).name];
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!