Array as input for look-up table in simulink

조회 수: 10 (최근 30일)
Dennis
Dennis 2013년 6월 10일
I have a 451x250 double in my workspace, I would like to used it as a look-up talbe in simulink with the indicies as reference, so that array(1,1) would give the first number as output. How can this be done ?

답변 (1개)

Ryan G
Ryan G 2013년 6월 11일
Have you tried the n-d lookup tables? If that doesn't work you can also try defining it as a data store. You can setup the IC of the data store as this matrix then use a data store read along with a selector block that allows for a lot of flexibility.
  댓글 수: 2
Dennis
Dennis 2013년 6월 11일
I have tried the n-d lookup table, but when I try to import the matrix from the workspace or from file, I get a 1d vector.
I dont get the idea of using the data store block ?
Kaustubha Govind
Kaustubha Govind 2013년 6월 11일
Dennis: You don't need to import the matrix as a signal using the From Workspace/File block, simply enter the name of the variable in the 'Table data' field of the n-D Lookup Table's dialog window.

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

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by