MATLAB Answers

3D array manipulation Simulink

13 views (last 30 days)
Hildo
Hildo on 19 Jan 2017
Answered: Hildo on 26 Jan 2017
I'm using the Simulink and the "Constant block" to read a 3D matrix (row,column,page) in the workspace. I want to select one page of this 3D matrix on the Simulink, and this selection will change accord with the output of the others blocks in the simulation.
Summarizing:
  1. I have one (r,c,p) matrix in Simulink;
  2. I want to select p=1,2,3...; (HELP HERE)
  3. I will use the "squeeze block" to remove the singleton dimension (in p);
  4. I will use this (r,c) matrix in my other part of the simulation.

  0 Comments

Sign in to comment.

Accepted Answer

Hildo
Hildo on 26 Jan 2017
It is possible using the "Direct Lookup Table (n-D)" block, selecting it to have a "table input".

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.