Block Error: Loading matlab workspace table data in Simulink model 2-D Lookup Table?
10 次查看(过去 30 天)
显示 更早的评论
Hi,
Guess it might be a novice level question.
I have numeric data stored in 24x12 table in matlab workspace (See attacehd fig.1). Data was imported from an excel sheet.
Each column corresponds to a month of the year and each row to an hour of the day.
Intention is to use the numeric data from this table stored in matlab workspace, and utilise it in a simulink model through a 2-D lookup table based on the calculated month and hour (See attached fig.2).
However, receiving compilation error as shown in attached fig.3.
Would appreciate some guidance.
Thanks in advance!
0 个评论
采纳的回答
Fangjun Jiang
2022-8-24
The data in your MATLAB workspace is in an Table object. see class(ELSE2021New).
Simulink doesn't recognize this type of object.
If you could move the data to an ordinary 2-D matrix, then the error should disappear.
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinearity 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!