Hello, I need help to resolve this error, please.

1 vue (au cours des 30 derniers jours)
Danikha Shyken
Danikha Shyken le 23 Sep 2023
Commenté : Danikha Shyken le 25 Sep 2023
  5 commentaires
Walter Roberson
Walter Roberson le 23 Sep 2023
I know very little about the syntax of Stateflow.
Is the intention for there to be an assignment, or is the intention for there to be a comparison?
If it is a comparison, perhaps == should be used?
If it is an assignment, then perhaps it should go inside the TEG state?
Perhaps you should be using "Boost" so that it is a string object instead of a character vector?
Perhaps you should be using some kind of enumeration or categorical instead of a character vector?
Danikha Shyken
Danikha Shyken le 25 Sep 2023
I understand now, thanks much for your assistance.

Connectez-vous pour commenter.

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 23 Sep 2023
Simulink now supports "string" data type. At your Simulink model, press Ctrl+H to bring up the Model Explorer. Navigate to the chart, find the data "mode", specify its data type as "string". Use double quote to assign its value like {mode="boost";}
  1 commentaire
Danikha Shyken
Danikha Shyken le 25 Sep 2023
I've got it, thanks for your help.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by