How do you change the port names in a lookup table programatically?

8 ビュー (過去 30 日間)
Isaac Friedman
Isaac Friedman 2020 年 5 月 20 日
回答済み: Fangjun Jiang 2020 年 5 月 20 日
I have a 2D lookup table that is generated by code. It takes in data from 2 sensors, but I can't figure out which port is which. They're just labeled "u1" and "u2." I used get(gcbh) to find all the parameters of the block, but none of them control these labels. Can I change these port names using set_param, and if so, what is that parameter called?
  4 件のコメント
Fangjun Jiang
Fangjun Jiang 2020 年 5 月 20 日
"u1" could be the label of the signal line. Try deleting the line to figure it out.
Or it could be a graphical masking of the block. You need to figure it out.
Isaac Friedman
Isaac Friedman 2020 年 5 月 20 日
編集済み: Isaac Friedman 2020 年 5 月 20 日
It's not a signal label. It's present from the moment you bring a lookup table into the project. I checked all the Mask parameters that came up when I used get(gcbh), but none fo them had any information in them other than "Var="

サインインしてコメントする。

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 5 月 20 日
You can't change the lable "u1", "u2". They are just to identify the first dimention input, 2nd dimension input, etc. They have nothing to do with the actual signals you are connecting them to.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by