0

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?

am304
  • 13,425
  • 2
  • 19
  • 36
Eagle
  • 2,996
  • 4
  • 29
  • 42

1 Answers1

2

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.

am304
  • 13,425
  • 2
  • 19
  • 36