How to get Matlab to read this in a .m file to another .m file
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sam2021
el 21 de Feb. de 2020
Comentada: sam2021
el 22 de Feb. de 2020
i am trying to get my trap data file to read into my other file, and i cannot figure out why it wont all read in. any help is appreciated
0 comentarios
Respuesta aceptada
Walter Roberson
el 22 de Feb. de 2020
Replace
fid = fopen('trapdata.m', 'r');
S = fscanf(fid,'%d')
fclose(fid)
with
[f, a, b, n, N] = trapdata();
You do not use N in your existing code, so you will likely be given a warning about that. If you want to get rid of the warning then
[f, a, b, n] = trapdata();
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis 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!