2D Lookup Table Block in Simulink Resulting in Error: Invalid setting for parameter 'BreakpointsForDimension1'
8 ビュー (過去 30 日間)
古いコメントを表示
Hi. I am trying to figure out how to use a 2D lookup table in Simulink. So I created the following arbitrary table:
Data:
Breakpoint1:
Breakpoint2:
And when I try to use the Lookup Table block in Simulink, it gives me the following error:
I would appreciate it if someone could help me fix the error.
0 件のコメント
採用された回答
madhan ravi
2023 年 12 月 30 日
編集済み: madhan ravi
2023 年 12 月 30 日
table_data = yourdata; % should be an array not a table
breakpoints1 = (1 : 5).'; % should be an array not a table
breakpoints2 = 1 : 5; % should be an array not a table
https://in.mathworks.com/help/simulink/slref/2dlookuptable.html#mw_91e8e99a-97dc-44cf-afbd-d025d785b311 see this link for supported data types
1 件のコメント
madhan ravi
2023 年 12 月 30 日
your datas are in table() form convert them to array format by doing
table_data{:, :}
breakpoints1{:, :}
breakpoints2{:, :}
in the respective dialog boxes
その他の回答 (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!