'Input' Keyword not detected

1 回表示 (過去 30 日間)
Ricard Escriva
Ricard Escriva 2022 年 5 月 12 日
回答済み: sai charan sampara 2023 年 9 月 27 日
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 件)

sai charan sampara
sai charan sampara 2023 年 9 月 27 日
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.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by