Import Custom File Type
To edit signals that are in your own custom data format or a non-MAT-file, click Import on the Signal Editor tab. Custom file types:
Are external to MATLAB® or Simulink®, such as Microsoft® Excel® or JSON format files.
Contain signal data whose format does not conform to those listed in Forms of Input Data.
Simulink provides these file types.
Simulink.io.SignalBuilderSpreadsheet— Signal Builder file type
Simulink.io.BaseWorkspace— Base workspace file type
Simulink.io.MatFile— MAT-file file type
Simulink.io.ModelWorkspace— Model workspace file type
Simulink.io.MDF— Measurement data format (MDF) file type
Simulink.io.PluggableNamespace— Different name space file types
Simulink.io.SLDVMatFile— MAT-file containing Simulink Design Verifier™
Example file types
Test™ provides the
sltest.io.SimulinkTestSpreadsheet (Simulink Test) file type.
To import custom file types that you develop in-house, you can create and register your own custom file type reader. For information, see Create Custom File Type for Import to Signal Editor. Afterwards, use this workflow to import custom file types into Signal Editor.
Before starting, check that nobody is editing the custom file type class file. Editing the custom file type class file while trying to import it as a reader causes unexpected behavior.
Check that your custom file types have been registered in Simulink. In the Signal Editor tab, click Import. The Import dialog box displays.
From the list of custom MAT-files, select the one that contains your signals, such as
All registered file types appear in the Supported File Types table.
Select the signals you want to see in Signal Editor and click OK. To search for a signal name, enter it in Name.
In the Signal Editor tab, observe that the signals are now in the hierarchy. You can edit these signals as you would any signal.