How to create a lookup table?

조회 수: 7 (최근 30일)
SIMONE PARENTELA
SIMONE PARENTELA 2021년 1월 6일
I have a velocity vector of 200 columns, and a Torque 200x200 matrix. If I type plot(w_ice,T_ice) I get the red line as the result. I need to create a lookup table that represents this red line. If I enter the lookup table in simulink I get the error that the breakpoint must be motorically increasing. How do I proceed?
  댓글 수: 14
SIMONE PARENTELA
SIMONE PARENTELA 2021년 1월 7일
you're right. how can i solve the problem?
Athrey Ranjith Krishnanunni
Athrey Ranjith Krishnanunni 2021년 1월 7일
There isn't enough information to provide a definite answer for that, because the issue is physical and not related to programming.
You could try explaining what you are actually trying to do here in the general sense, and maybe someone who knows about the topic can help.

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

답변 (1개)

KSSV
KSSV 2021년 1월 6일
편집: KSSV 2021년 1월 6일
Read about knnsearch. Also have a look on scatteredInterpolant.
  댓글 수: 1
SIMONE PARENTELA
SIMONE PARENTELA 2021년 1월 6일
I already have points. The red line is already plotted. I don't understand how to overcome the problem on simulink. Because the error says that the breakpoints (speed values) must be monotonically increasing.

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

카테고리

Help CenterFile Exchange에서 Lookup Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by