In R2019b and later releases, the function 'sscnewfile' can be used to create new '.ssc' files for custom Simscape components. To find more information on 'sscnewfile' in MATLAB R2019b, execute the following command in the command window to view the release-specific documentation:
>> web(fullfile(docroot, 'physmod/simscape/ref/sscnewfile.html'))
In R2019a and earlier, there are two possibilities:1. Copy an existing ssc-file and change its content to customize an existing component.2. Create a new script in the MATLAB Editor, click "Save as", and manually change the file name to end with '.ssc'.
If you need more information about the Simscape Language, please refer to the documentation listed below. Run the commands in the MATLAB R2019a command window to access release-specific documentation.
What Is the Simscape Language?
>> web(fullfile(docroot, 'physmod/simscape/lang/what-is-the-simscape-language.html'))
Simscape File Types and Structure
>> web(fullfile(docroot, 'physmod/simscape/lang/about-simscape-files.html'))
Creating Custom Components
>> web(fullfile(docroot, 'physmod/simscape/lang/creating-custom-components.html'))
Please follow the link below to search for the required information regarding the current release: