- Substitute all NaNs with "0"s or something else with relational operator before using/feeding the data to the Simulink model.
- A bit more complicated way is to use logic and bit operators to sort out all NaNs.
How to deal with NaN in 'from spreadsheet' block in Simulink? How do I make Simulink ignore NaNs?
2 次查看(过去 30 天)
显示 更早的评论
I have a spreadsheet which has certain 'NaN' values under different variables. This spreadsheet is exported from MATLAB.
I am using the spreadsheet to export values of Irradiance and temperature to a Simulink PV model. The model screenshot is attached:
I am using 'from spreadsheet block' from the Simulink library.
The spreadsheet data looks like this
While running the model I am getting the following errors:
How do I make SIMULINK ignore the NaN values and run the simulation?
0 个评论
回答(1 个)
Sulaymon Eshkabilov
2019-8-28
Hi,
I would suggest to try two different ways:
Good luck
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!