creat stateflow use script
2 次查看(过去 30 天)
显示 更早的评论
hello,when i run the following script,error happens, any one knows what the root reason, following are the script.
sfnew
rt = sfroot;
ch = find(rt,'-isa','Stateflow.Chart');
st = Stateflow.State(ch);
view(st)
j1 = Stateflow.Junction(ch);
j1.Position.Radius = 16.18;
j1.Position.Center = [31.41 27.18];
j2 = Stateflow.Junction(ch);
j2.Position.Radius = 16.18;
j2.Position.Center = [62.41 27.18];
transition = Stateflow.Transition(ch);
transition.Source = j1;
transition.Destination = j2;
transition.LabelString = '{xx;yy;zz;}';
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!