Main Content

slxcinfo

Query contents of Simulink cache files

Since R2020b

Description

fileinfo = slxcinfo(filename) returns the contents of the Simulink® cache file specified by filename. To describe the contents, the output table provides the Simulink model name, MATLAB® release, platform, target type, and compiler.

example

Examples

collapse all

Suppose you have a Simulink cache file named CounterAlgorithm.slxc. To return a table that lists the artifacts in the Simulink cache file, you would enter this command.

fileinfo = slxcinfo("CounterAlgorithm.slxc")
fileinfo =

  3×5 table

          Model           Release     Platform                     Target                               Compiler           
    __________________    ________    ________    ________________________________________    _____________________________

    "CounterAlgorithm"    "R2025a"    "all"       "Variable usage information"                ""                           
    "CounterAlgorithm"    "R2025a"    "win64"     "Model reference simulation target"         "MinGW64 Compiler (C) v8.1.0"
    "CounterAlgorithm"    "R2025a"    "win64"     "grt | Model reference | Model specific"    "MinGW64 Compiler (C) v8.1.0"

For each artifact, the table provides the corresponding Simulink model name, MATLAB release, platform, target type, and compiler.

Input Arguments

collapse all

Filename or path of the Simulink cache file, including the .slxc extension, specified as a character vector or string scalar.

The filename can include a partial path, complete path, relative path, or no path.

When multiple Simulink cache files with the same name are on the MATLAB path, the function uses the file higher on the path. For more information, see Shadowed Files.

Example: slxcinfo("mymodel.slxc")

Example: slxcinfo("mydir/mymodel.slxc")

Example: slxcinfo("C:/mydir/mymodel.slxc")

Data Types: char | string

Output Arguments

collapse all

Simulink cache file contents, returned as a MATLAB table.

Each row of the table includes the corresponding Simulink model name, MATLAB release, platform, target type, and compiler.

Alternative Functionality

To open the Simulink cache report, double-click the Simulink cache file.

Version History

Introduced in R2020b

expand all