How to set global variables for simulink with matlab functions

조회 수: 109 (최근 30일)
mg
mg 2022년 6월 13일
댓글: Walter Roberson 2022년 12월 20일
I'd like to use global variable in matlab function block. But I cannot find "symbols pane" to set global variable as Simulink.Signal object in contents below link site. Could you tell me where it is?
  1. Make sure the Simulink.Signal object is registered to the MATLAB Function block.
  2. In the Modeling tab, in the Design section, click Symbols Pane.
  3. In the Symbols pane, select the data A. This data uses the same name as the global variable. Right click and select Inspect... to open the Property Inspector.
  4. In the Property Inspector, set the Scope of the data to Data Store Memory.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2022년 6월 14일
The link is document for R2022a. You have R2017a.
Open your MATLAB Function block Editor, click the "Edit Data" button.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by