Reputation: 3474
I would like to copy a Stateflow chart
The command:
Simulink.SubSystem.copyContentsToBlockDiagram(subsys, bdiag)
doesn't work on a Stateflow chart alone, rather then only on subsystems.
How could I copy a selected Stateflow to another system?
Upvotes: 0
Views: 298
Reputation: 13876
I think you need to use the Stateflow API (which is different from the Simulink one), in particular this example on Copy Objects looks like what you are trying to do.
Upvotes: 2