simulink 'tofile' block creates an unloadable mat file
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Functions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!