필터 지우기
필터 지우기

2D Lookup Table Editor plot error

조회 수: 2 (최근 30일)
Joris Naudin
Joris Naudin 2021년 12월 27일
댓글: Joris Naudin 2022년 1월 5일
Hi,
I created a 2D lookup table which works perfectly fine and even displays the preview of the table as an icon.
However, if I want to visualize the table with the editor's plot, it gives me this error:
"Size vector elements should be nonnegative"
Obviously, the vectors aren't negative since the table works fine. Why is the editor's plot not working ?
I attached the table and the simulink file.
Cheers

답변 (1개)

Priyanka Kondapalli
Priyanka Kondapalli 2022년 1월 5일
Hi,
Based on my understanding, you are trying to visualize the data in the table. There are two workarounds to do this
If you want to visualize the 2D lookup table data along with the approximation function used, you can right click on the block, go to Look Up Table Editor > Plot. Please follow the below link for more information
If the intent is to visualize the data from the 2D lookup table, you can rearrange the input and output and plot the data using scatter3 function.
  댓글 수: 1
Joris Naudin
Joris Naudin 2022년 1월 5일
Well, that's the point: for some reason the Look Up Table Editor > Plot doesn't work

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by