Getting value from the table - simulink

19 ビュー (過去 30 日間)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2021 年 5 月 20 日
回答済み: Tridib 2025 年 2 月 11 日 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

回答 (1 件)

Tridib
Tridib 2025 年 2 月 11 日 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!

カテゴリ

Help Center および File ExchangeLookup Tables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by