Getting value from the table - simulink

19 vues (au cours des 30 derniers jours)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan le 20 Mai 2021
Réponse apportée : Tridib le 11 Fév 2025 à 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

Réponses (1)

Tridib
Tridib le 11 Fév 2025 à 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!

Translated by