%% Convert Subsystem into Component in Target Folder

% 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 the generated file in 
% a designated folder.
subsystem2ssc('ssc_dcmotor/DC Motor','./MotorsLibrary')
%% 
% The function creates a file named DC_Motor.ssc and places it into the 
% folder named |MotorsLibrary|. 
%
% If the specified target folder does not exist, the function creates it.

