フィルターのクリア

simulink functionの入​力因数への入力方法が​分からないです(I don't know how to enter input factors in simulink function!)

24 ビュー (過去 30 日間)
nm
nm 2024 年 6 月 24 日 4:48
回答済み: covao 2024 年 7 月 6 日 5:44
見ていただき、ありがとうございます。
simulink function ブロックの入力因数へ0.8を入力したいため、ワークスペースから行っているのですが、出力が0や負となってしまいます。
入力因数への入力の方法や原則などありましたら教えていただきたいです。
ワークスペースへの保存コードとしては以下で行っております。
I want to input 0.8 into the input factor of a simulink function block, and I am doing this from the workspace, but the output is 0 or negative.
I would like to know if there is a method or principle for inputting the input factor.
I am using the following as the code to save to the workspace.
x = 0.8 ;

回答 (1 件)

covao
covao 2024 年 7 月 6 日 5:44
Simulink Functionのような SimulinkのUser-Defined Functionsには、複数の種類があります。
  • Simulink Function: Simulinkブロックで作成した関数を、Function Caller ブロック、MATLAB Function ブロックまたは Stateflow チャートで再利用できるようにするためのブロックです。Constantブロックなどのパラメータにワークスペース変数を設定して利用することができます。
  • MATLAB Function: MATLABの関数でSimulinkブロックを記述するためのブロックです。関数の引数はデフォルトで入力ポートして扱われますが、Property InspectorでParameter Dataを選択すると、ワークスペース変数の値を使用することができます。詳細は、MATLAB Function ブロック パラメーター変数の設定に情報があります。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!