%% Convert Subsystem into Composite Component

% Copyright 2018 The MathWorks, Inc.

%%
% Open the DC Motor example model.
ssc_dcmotor
%%
% This example model contains a subsystem named DC Motor. Convert this
% subsystem into a Simscape component file and place this file in 
% your current working folder.
subsystem2ssc('ssc_dcmotor/DC Motor')
%% 
% The function creates a file named DC_Motor.ssc in the current folder.
% Double-click the DC_Motor.ssc file to open it in the editor.
%% 
% Double-click the DC Motor subsystem in the example model and compare  
% it to the generated file. The generated composite component contains 
% the same components, parameters, and connections as the original subsystem.
