Hello,
I am trying to build a block for Simscape with matlab.
However, when I write the kyword 'input' the program is not detecting it as a reserved keyword. Thak you for reading this message. Here is my code so far:
component timesTwo
input
end

답변 (1개)

charan
charan 2023년 9월 27일

0 개 추천

Hello Ricard,
I understand that you are trying to build a custom component for Simscape using MATLAB.
The keyword “input” is not being detected because the correct keyword is “inputs”. As the MATLAB commands are case sensitive, I suggest you change the keyword to “inputs”.
You can refer to the below documentation to learn more about “component” definition and different keywords in it:
I hope this helps.
Thanks,
Charan.

카테고리

도움말 센터File Exchange에서 Troubleshooting에 대해 자세히 알아보기

태그

질문:

2022년 5월 12일

답변:

2023년 9월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by