| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Simulink.SubSystem.deleteContents(subsys)
Simulink.SubSystem.deleteContents(subsys) deletes the contents of the subsystem subsys. The subsystem must have already been loaded. The function affects only blocks, lines, and annotations; it does not affect nongraphical information such as configuration sets.
subsys |
Subsystem name or handle |
Delete the graphical contents of Controller, including all nested subsystems:
Simulink.SubSystem.deleteContents('f14/Controller');
Simulink.BlockDiagram.copyContentsToSubSystem | Simulink.BlockDiagram.deleteContents | Simulink.SubSystem.convertToModelReference | Simulink.SubSystem.copyContentsToBlockDiagram
![]() | Simulink.SubSystem.copyContentsToBlockDiagram | Simulink.SubSystem.getChecksum | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |