How do you change the port names in a lookup table programatically?
조회 수: 9 (최근 30일)
이전 댓글 표시
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
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.
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Additional Math and Discrete에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!