simulink 'tofile' block creates an unloadable mat file
Mostrar comentarios más antiguos
I have a simulink test case by sampling a continuous time signal for 0.125 seconds with sample rate of 32MHz, and the sampled data is sent to file 'a.mat' with simulink 'toFile' block. However, after simulation I could not load file 'a.mat' for post processing. Matlab complains
'??? Error using ==> load Can't read file Z:a.mat.
If I simulated for more than 0.125 seconds, I noticed that file 'a.mat' did not increase its size. I wonder if 'toFile' block has a maximum file size limitation.
On the other hand, if I simulate for a shorter time, say, 0.1 seconds, 'a.mat' size became smaller, but I still cannot load it from Matlab, until I reduced the simulation time substantially. I again wonder if 'toFile' has a potential problem of corrupting the output file for long simulations.
Thanks in advance for your response,
Jianping
1 comentario
Jianping
el 6 de Feb. de 2012
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!