2D Lookup Table Block in Simulink Resulting in Error: Invalid setting for parameter 'BreakpointsForDimension1'
조회 수: 6 (최근 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1579071/image.png)
Breakpoint1:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1579076/image.png)
Breakpoint2:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1579081/image.png)
And when I try to use the Lookup Table block in Simulink, it gives me the following error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1579086/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1579091/image.png)
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!