Change variable name in Stateflow model

Is there a way to change a signal name that is referenced troughout a Stateflow model without having to go through the whole model and manually change its' name?
I figured it should do this automatically if I change the name in the Model Explorer but unfortunately not :(

댓글 수: 1

Bjoern
Bjoern 2012년 4월 3일
It seems this isn't possible so I'm hoping Mathworks will fix this since they have context-aware variable re-naming in their latest editor.
Does anyone know anything about this?

댓글을 달려면 로그인하십시오.

 채택된 답변

Adrian
Adrian 2012년 5월 29일

0 개 추천

It is possible to do "Search & Replace..." in a Stateflow chart. You can find this menu entry under the "Tools" menu or using the shortcut Ctrl+L; see this link http://www.mathworks.com/help/toolbox/stateflow/ug/f8-1016134.html . It worked nicely for me. I have Stateflow 6.5 (R2006b). Hope it works as you intended.

추가 답변 (1개)

K E
K E 2012년 4월 3일

0 개 추천

Perhaps it is possible from the command line, for example making use of Simulink.findVars . Take a look at Doug Eastman's solution to a related problem, this blog post, and this technical note.

카테고리

도움말 센터File Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

질문:

2012년 3월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by