Simulink reading mat file issue
古いコメントを表示
I have recently created a model to capture a large array of data to mat file in the simulink environment. I used from 'mat file block' to extract my mat file to my scope where the output data type uses my busdata objectin order to extract data regardless of data type.
I get two error messages:
Error encountered while reading from my mat file.
Non-infinite data, Nan, inf or -inf are encountered while reading from file.
Your assistance would be greatly appreciated.
回答 (1 件)
Azzi Abdelmalek
2013 年 9 月 7 日
0 投票
Some of your data are equal to nan, load your mat file, make interpolation to replace those nan values, and save again your new data in a mat file
5 件のコメント
Azzi Abdelmalek
2013 年 9 月 8 日
[ SammyNHarry commented]
Thank you for your advice but I am a bit puzzled why nan inf or -inf data appeared in my mat file when most of my data are in double format which I expected my data should not have Nan inf or -inf.
Azzi Abdelmalek
2013 年 9 月 8 日
編集済み: Azzi Abdelmalek
2013 年 9 月 8 日
SammyNHarry, please use [comment on this answer] to add a comment
Azzi Abdelmalek
2013 年 9 月 8 日
Check your data in Matlab windows command
load yourfilename
% If y is your array, use
find(isnan(y)) % check for nan numbers
SammyNHarry
2013 年 9 月 9 日
Ilham Hardy
2013 年 9 月 9 日
Then probably your array has Inf in it. You can check it with:
find(isinf(y)) % check for nan numbers
カテゴリ
ヘルプ センター および File Exchange で String についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!