simulink 'tofile' block creates an unloadable mat file
Ältere Kommentare anzeigen
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 Kommentar
Jianping
am 6 Feb. 2012
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Sources finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!