How to set global variables for simulink with matlab functions

55 vues (au cours des 30 derniers jours)
mg
mg le 13 Juin 2022
Commenté : Walter Roberson le 20 Déc 2022
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.

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 14 Juin 2022
The link is document for R2022a. You have R2017a.
Open your MATLAB Function block Editor, click the "Edit Data" button.
  2 commentaires
mg
mg le 18 Juin 2022
Thank you for your help
Victory Friday
Victory Friday le 20 Déc 2022
Please I can't find it for 2022A

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Model Editing dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by