simulink 'tofile' block creates an unloadable mat file
古いコメントを表示
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
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!