Main Content

publishActor

Generate package for actor simulation

    Description

    Simulink.publish.publishActor(actorBehavior,Name,Value) generates a package from the actor behavior specified by actorBehavior for actor simulation with additional options specified using one or more name-value arguments..

    example

    Simulink.publish.publishActor(modelName,Name,Value) generates a package from the model name specified by modelName for actor simulation with additional options specified using one or more name-value arguments..

    Examples

    collapse all

    Publish the model actor behavior as a package to use in actor simulation.

    Simulink.publish.publishActor("mSimple",PackageType="actorRapid",...
    SetupScript="setup.m",OutputFile="output.zip")

    Input Arguments

    collapse all

    Actor behavior for MATLAB® System object™, specified as a character vector or string.

    Example: "MySystemObjectBehavior.m"

    Data Types: char | string

    Simulink® model name, specified as a character vector or string.

    Example: "mSimple"

    Data Types: char | string

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    Example: Simulink.publish.publishActor("mSimple",PackageType="actorRapid",SetupScript="setup.m",OutputFile="output.zip")

    Relation target mode the actor will use, specified as a relationTarget value "actorNormal" or "actorRapid".

    Data Types: string

    Setup script file to include in package, specified as a string of the file name.

    Data Types: string

    Cleanup script file to include in package, specified as a string of the file name.

    Data Types: string

    Output file for package, specified as a string of the full file path with the ZIP extension.

    Data Types: string

    Data files to attach, specified as an array of strings of data file names.

    Data Types: string

    Version History

    Introduced in R2022a