Getting value from the table - simulink

19 views (last 30 days)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan on 20 May 2021
Answered: Tridib on 11 Feb 2025 at 5:27
Hallo,
I am getting the table as the input to the simulink model for exmaple as given blow,
First row and column are my breakpoints. How can I directly give the above table as an input to Lookup table block and get the corresponding output?
Thanks a lot in advance
Best Regards,
Bala

Answers (1)

Tridib
Tridib on 11 Feb 2025 at 5:27
To use the given table as input for a Lookup Table block in Simulink, please follow these steps:
  1. Utilize the "2-D Lookup Table" block for this setup. 
  2. In the "Block parameters dialog box" for the "2-D Lookup Table" block, add the required breakpoints and matrix in the “Breakpoints and “Table data sections respectively.
  3. As per the requirements, connect input sources to the "2-D Lookup Table" block for row and column inputs, attach a "Display" block to its output, and run the simulation to observe the results.
Ensure to adjust the interpolation and extrapolation methods in the block parameters as needed.
Refer to the following documentation:
Hope this helps!

Community Treasure Hunt

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

Start Hunting!