フィルターのクリア

Using Matlab functions in custom Simscape blocks

2 ビュー (過去 30 日間)
dagfinae
dagfinae 2018 年 3 月 16 日
編集済み: dagfinae 2018 年 3 月 16 日
I want to make a custom Simscape block that uses the MATLAB function square. However, for some reason the Simscape language does not allow the use of MATLAB functions. When I try to run the model with the customized block, I get the following error:
Error compiling Simscape network for model pg_stiffness.
Caused by:
['pg_stiffness/Simscape Component']: No function or value named square.
In spring_custom (line 31)
When using the MATLAB Function Block in Simulink, a similar error can be bypassed by declaring the MATLAB function as extrinsic . Is there a similar solution for MATLAB functions in Simscape blocks?

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by