Straighten signal lines while moving or resizing blocks
Starting in R2025a, when moving or resizing a block with three or more ports straightens a signal line that connects the block to a nearby block with one or two ports, the signal line remains straight as you continue to move or resize the block. The affected signal lines are highlighted in green. Signal lines with branches or Simscape™ connections are not affected.
This functionality is an extension of the functionality that, when you drag or resize a block with three or more ports, preserves existing short, straight lines that connect to blocks with one or two ports. Starting in R2025a, when you move blocks using the keyboard, the functionality is turned off.
When you move or resize blocks with your pointer, you can temporarily turn the functionality off by holding down the space bar. When you release the space bar, the functionality turns back on. To turn the functionality off across MATLAB sessions, in the Simulink Editor, on the Modeling tab, under Environment, clear Preserve Alignment. To turn the functionality back on, select Preserve Alignment.
Compare diagnostic messages from different run-time operations of a model using the new Comparator
Use the Comparator in the Diagnostic Viewer to easily identify new diagnostic messages that a model generates during various run-time operations. The Comparator can compare diagnostic messages between any two operations within the same MATLAB® session, across different sessions, or even across different MATLAB versions. To compare diagnostic messages from different sessions, you can save the diagnostic messages from an operation as a baseline file and import it later for comparison with diagnostic messages generated from a subsequent operation.
To use the Comparator, select Comparator from the drop-down menu on the left side of the Diagnostic Viewer.
By using the Comparator you can:
Compare diagnostic messages between any two run-time operations. The operations must be of similar type. For example, diagnostic messages from a simulation operation must be compared with diagnostic messages from another simulation operation.
View the count of the diagnostic messages that have been added and removed between operations.
View newly added diagnostic messages.
Copy the comparison report to the clipboard in text and JSON formats.

For more information on using the Comparator, see Compare Diagnostic Messages Between Model Simulations.
To programmatically compare diagnostic messages from various run-time operations of a
model, use functions of sldiagviewer.DiagnosticReceiver object and sldiagviewer.Comparator namespace. For more information, see Compare Diagnostic Messages Between Model Simulations Programmatically.
Access Model Finder from Simulink Toolstrip and Start Page
In addition to using the modelfinderui function, starting in R2025a
you can open the Model Finder
user interface from these locations:
Simulink® Toolstrip — In the Modeling tab, in the
Evaluate & Manage section, click the down arrow
next to Find
and then select Model
Finder.
Simulink Start Page — In the Learn menu, click Model Finder.
Apply search filters, customize views, and index projects using Model Finder functions
Filter search results and customize their layout by using these name-value arguments of the
modelfinder
function:
filters — Starting in R2025a, filtering search results
using name-value argument blocks is not supported. Instead,
use the name-value argument filters to narrow down the search results by specifying criteria
such as MathWorks® product names, model locations, block types, or external
referenced files. To specify filters, create a ModelFinderFilter object. For information on how to create and
search using filters, see Search Models with Additional Filters.
view — Customize the layout of Model Finder search
results. Choose between viewing results as a list of examples with their
supporting models or as a list of models only. For more information, see the
name-value argument view.
Additionally, when you register a folder using the modelfinder.registerFolder function and it contains a PRJ project file,
Model Finder indexes the project and its models in the database.
Access Library Browser from linked blocks in models
Starting in R2025a, you can open the Library Browser directly from the context menu of a linked library block in a model. The Library Browser displays the tree view of the library containing the linked library block, with the block highlighted. This context menu option enables you to manage and browse related blocksets efficiently and is available for all libraries added to the Library Browser.

Programmatically resize blocks to fit displayed values
These Simulink blocks display a parameter value on their block icons:
When the blocks are too small to display the full parameter value, the blocks display a
placeholder letter instead, for example, -K-. A model that contains many
blocks displaying placeholder letters can be difficult to work with, and resizing all the
affected blocks takes time.
You can now programmatically resize blocks of the listed block types to be large enough to
display their values using the Simulink.BlockDiagram.resizeBlocksToFitContent function. For example, to
resize all blocks of the listed block types in a model named myModel, run
this command.
Simulink.BlockDiagram.resizeBlocksToFitContent("myModel")
Get block paths and port paths using context menu
To programmatically edit a block or port, in the input arguments of the function you want to
run, you must specify the block or port using a handle or path. A
path is a string (preferred) or character vector that specifies
the location of the block or port in the model hierarchy relative to the root level of the
model. For example, suppose you have a model named myModel containing an
Inport block and a Scope block with three ports. This
command connects the port on the Inport block to the bottom port on the
Scope block using the port paths "myModel/Inport/1"
and "myModel/Scope/3", respectively.
Simulink.connectBlocks("myModel/Inport/1","myModel/Scope/3")
You can now get the block paths and port paths for your commands interactively. In your model, right-click a block or port and select Copy Path. Then, paste the path into your command. Remember to add quotes around the pasted text to convert the text into a string or a character vector. For more information about getting and using paths, see Get Handles and Paths.

Model elements you select for conversion to signal lines or Goto and From blocks can include nonconvertible model elements
Since R2024a, you can convert Goto and From blocks to signal lines, and you can convert signal lines and buses to Goto and From blocks. To perform such a conversion, select the blocks, or signal lines and buses, you want to convert. In the Simulink Toolstrip, open the Goto, From, Signal Line, or Multiple tab. In the Conversion section, click Convert to Signal or Convert to Goto/From.
In R2024a and R2024b, if the model elements you select for conversion include anything other than Goto blocks, From blocks, signal lines, and buses, or if your selection includes both blocks and signal lines or buses, or if any model element in your selection does not meet these criteria, the conversion is not supported:
The signal lines, buses, or blocks are fully connected.
The signal lines, buses, or blocks are all in the same location in the model hierarchy, meaning either all in the top level of the hierarchy or all in the same component.
The signal lines or buses are not connected to any Goto or From blocks.
Starting in R2025a, if any select model elements meet the criteria, you can perform the conversion regardless of whether the selection also includes additional model elements that do not meet the criteria. During the conversion process, the software ignores model elements that do not meet the criteria. As such, when you drag to select the model elements you want to convert, you no longer need to avoid selecting or to deselect elements that do not meet the criteria.
Filter diagnostics based on model components in the Diagnostic Viewer
Starting in R2025a, when you simulate a model that has referenced models and referenced subsystems, the Diagnostic Viewer provides filters to select specific model components and view their diagnostics. The filters enable you to determine whether diagnostics originate from the model or from any of its referenced files and focus on diagnostics for selected components only. You can view the filters in the Filter By pane in the Diagnostic Viewer.
To open the Filter By pane, click Filter in the Diagnostic Viewer. You can then select to view diagnostic messages from the model or any of its referenced models and referenced subsystems.

For more information, see Filter Diagnostics Based on Model Components.
Improved Scope and new scope container to dock all scopes in one window
The Scope and Floating Scope and Scope Viewer blocks in Simulink have a new user interface that you can use to access settings and measurements of the scope. The scope is now more responsive and its performance is improved. Use the new scope container to dock multiple scope windows into a single window and to manage and organize the scopes. The scope container also enables you to view all the scopes in the model in a single window.
Key improvements to the Scope and Floating Scope and Scope Viewer blocks are:
Streamlined user interface: Easy access to all the general scope settings from the Scope tab and all the measurement settings from the Measurements tab of the new scope toolstrip.
New scope container: A single window providing a unified view for all the scope displays in the model, enabling you to manage and organize multiple scopes in one place.
Updated settings panel: Updated panel consolidates all general and style settings of the scope. To open the panel, click Settings in the Scope tab of the toolstrip.
Scope Tab
Measurements Tab
Run multiple rapid accelerator simulations faster by using fast restart
You can now use fast restart to run multiple rapid accelerator simulations faster. Fast
restart saves time in rapid accelerator simulations by loading the rapid accelerator
executable only once, for the first simulation you run after enabling fast restart. The
rapid accelerator executable remains loaded for subsequent simulations you run while
initialized in fast restart. Enabling fast restart for rapid accelerator simulations has the
same effect as disabling the RapidAcceleratorUpToDateCheck parameter. The
software does not check whether the rapid accelerator executable is up to date and never
rebuilds the rapid accelerator executable.
For more information, see Script Iterative or Batch Simulations Using Fast Restart.
Fast restart is not supported for rapid accelerator simulations you run from a user
interface, such as the Simulink Editor, or by using the
set_param function with the SimulationCommand
name-value argument to start the simulation. In prior releases, fast restart was supported
only for normal and accelerator mode simulations.
Select multithreading co-simulation mode using the Performance Advisor
You can now use the Performance Advisor to select the optimal multithreaded co-simulation mode
for a model that contains thread-safe Simulink components. To enable multithreading for your
model, set the Multithreadedsim model parameter to one of these values:
force - Enable multithreading.
auto - Allow Simulink to select the optimal setting based
on computational load for the first time step.
off - Disable multithreading.
For example, to set the parameter as auto for model
MTCoSimModel, run this code in the command window:
set_param('MTCoSimModel','Multithreadedsim','auto');
The Performance Advisor check Select Multithreaded Co-Simulation setting
compares the auto and force settings for your model.
You can find this setting in the Performance Advisor under Checks that require
simulation to run category in the Simulation checks.
This check compares the simulation time of the model with both settings and advises which
setting is optimal for your model.
Python Importer: Improve simulation performance of Python class methods integrated into Simulink
Python Importer generates blocks that integrate Python class methods into Simulink. Starting in R2025a, the simulation performance of the blocks generated by Python® Importer is improved through the use of C-wrappers to call the specified Python class methods. Doing so:
Enhances the simulation performance of the blocks.
Enables simulation in rapid accelerator mode.
Supports simulation in model reference with accelerator mode.
To enable this feature, on the block dialog of the generated block, set the Simulate
Using: parameter as Code generation.

Use delay blocks with multithreaded co-simulation
Starting in R2025a, you can use the Unit Delay and Delay blocks with thread-safe Simulink components to enable multithreaded co-simulation. Use these blocks to break the dependency of thread-safe blocks on non-thread-safe upstream blocks.
Prior to R2025a, a thread-safe block that depended on a non-thread-safe block could not be multithreaded.
Run simulations from initial operating points while modifying models between simulations
By enabling flexible operating point initialization, you can simulate a model from an
initial operating point after making structural changes to the model between simulations. To
enable flexible operating point initialization, set the new Operating point
contents checksum mismatch model configuration parameter to
warning or none.
To identify structural changes in a model, the software compares the contents checksum of
the model to the contents checksum in the Simulink.op.ModelOperatingPoint specified as the initial state of the
simulation.
When you enable flexible operating point initialization, if the contents checksum of the model does not match the contents checksum of the initial operating point, the software initializes the simulation using as much information as possible from the operating point.
When flexible operating point initialization is disabled, as in prior releases, if the contents checksum of the model does not match the contents checksum of the initial operating point, the software issues an error.
By default, flexible operating point initialization is disabled because simulation results can differ significantly between simulations initialized using only a portion of the operating point information and simulations that run from the start without an initial operating point. For more information, see Speed Up Simulation Workflows by Using Model Operating Points.
To understand how the simulation is initialized using the data in the specified operating point, you can:
Inspect the Simulink.SimulationMetadata object
returned with the simulation results. The ModelInfo property
includes a structure named OperatingPointMismatches that provides
information about specific differences between the model and the operating point,
including details about unused operating point data and paths of uninitialized
blocks in the model.
Configure the software to issue warnings that provide information about specific
differences between the model and the initial operating point by setting the
Operating point contents checksum mismatch parameter
to warning.
Log model operating points to MAT file during simulation
You can now log model operating points during normal, accelerator, and rapid accelerator simulations. To ensure that the logged operating point data is saved if the simulation issues an error or MATLAB crashes during simulation, the operating points are logged to a MAT file. By logging operating points, you can:
Recover from crashes faster by resuming the simulation from an operating point logged before the crash.
Debug errors that occur in long-running simulations faster by starting a simulation debugging session from an operating point logged before the error occurred.
Run a single simulation to save the model operating point at each transition point in simulations that have predetermined and structured phases. You can then save time by using the appropriate operating point in subsequent simulations so that each simulation runs only the relevant phases.
Before R2025a, you could save the operating point of a model only at the end of simulation
or on demand by calling the get_param function while paused in
simulation. If the simulation issued an error or MATLAB crashed during simulation, no operating point data was saved. For more
information, see Speed Up Simulation Workflows by Using Model Operating Points.
Improved performance for solving algebraic loops that have multiple algebraic variables
Models with algebraic loops that have multiple algebraic variables show improved performance in the execution phase of simulation. The improvement in simulation execution time is directly proportional to the number of algebraic variables involved in a given algebraic loop.
To evaluate the performance improvement for a model, run an equivalent simulation of
the model in R2024b and R2025a and compare the execution time captured in the
simulation metadata. For example, consider the model
sldemo_hydcyl4, which has an algebraic loop that involves
five algebraic variables. To check the number of algebraic loops and the number of
algebraic variables in each loop, open the model and use the Simulink.BlockDiagram.getAlgebraicLoops function.
mdl = "sldemo_hydcyl4"; openExample("simulink_general/sldemo_hydcyl4Example",SupportingFile=mdl) Simulink.BlockDiagram.getAlgebraicLoops(mdl)
AlgebraicLoop with properties:
Model: [1×1 Simulink.BlockDiagram]
Id: [0 1]
VariableBlockHandles: [5×1 double]
BlockHandles: [28×1 double]
IsArtificial: 0To evaluate the performance improvement for the model, run this code in R2024b and R2025a.
set_param(mdl,MaxStep="1e-4"); nRuns = 10; for k = 1:nRuns out = sim(mdl); t(k) = out.SimulationMetadata.TimingInfo.ExecutionElapsedWallTime; end exectime = min(t);
The code:
Sets the maximum step size for the variable-step solver to
1e-4.
The small maximum step size makes the performance improvement more apparent for the simple model.
Simulates the model ten times in a loop.
Populates an array with the execution time of each simulation.
Takes the minimum simulation execution time to compare between releases.
The simulation runs about 19% faster in R2025a, with these approximate simulation times:
R2024b: 0.21 s
R2025a: 0.17 s
This evaluation was performed on a Windows® 11, AMD EPYC™ 74F3 @ 3.19 GHz test system.
Set breakpoints on outputs of root-level input ports while stepping block by block
You can now add breakpoints to outputs of root-level input ports while debugging a simulation block by block. When you add a breakpoint to the output of a root-level input port, the simulation pauses when the output value of the port satisfies the breakpoint condition. Set breakpoints on the outputs of root-level input ports when you want to investigate or debug model behavior in response to specific input values.
Root-level input ports include input ports created using Inport and In Bus Element blocks at the root level of either a top model or a referenced model.
You can set breakpoints on the outputs of both unique and duplicate root-level input ports.
You can set breakpoints on input ports of subsystems, but the breakpoints do not pause the simulation and appear as invalid in the block diagram.
Breakpoints on buses are not supported. Setting breakpoints on an input port created using an In Bus Element block is supported only when the port loads a leaf signal with scalar values.
For more information about signal breakpoint limitations, see Breakpoints List.
Breakpoints on the outputs of root-level input ports of referenced models inside variant subsystems are supported only for the active variant choice.
In previous releases, you could add breakpoints on the outputs of root-level input ports, but the breakpoints did not pause the simulation and appeared as invalid in the block diagram. To pause the simulation based on the signal value, you had to add a breakpoint on the block that produces the signal the port receives.
Enable Stateflow and MATLAB Function block debugging from the Breakpoints List
Using the new Debug Stateflow charts and MATLAB Function blocks option, you can enable the Allow setting breakpoints during simulation model configuration parameter from the Breakpoints List. With the Allow setting breakpoints during simulation parameter enabled, you can:
Add breakpoints in Stateflow® charts, State Transition Table blocks, Truth Table blocks, and MATLAB Function blocks during simulation.
Step into and out of Stateflow charts, State Transition Table blocks, and MATLAB Function blocks while stepping block by block through simulation.
Trace and highlight signals through bus element ports and model reference variants
You can now trace and highlight signals through bus element ports and through the active variant choice in model reference variants.
For more information about signal tracing and highlighting, see Highlight Signal Sources and Destinations
and sltrace.
SIMD Simulation Targets: Support hardware acceleration on Apple silicon Macs
You can now leverage single instruction, multiple data (SIMD) instructions to accelerate simulations on Apple silicon Macs.
For more information, see Hardware acceleration.
Log data directly to an MLDATX file
Log data directly to an MLDATX file instead of the workspace using model settings. To log
data to an MLDATX file, in the Configuration Parameters dialog box, in the Data
Import/Export pane, specify a filename with an .mldatx
extension in the Log data to file text box. Logging data to an
MLDATX file typically results in a smaller file size. The MLDATX file created when you
select Log data to file is similar to a Simulation Data Inspector
session file but contains only the data for a single run without view or comparison
information.
Query MLDATX file descriptions and types
MLDATX files can store many different types of data, including Simulation Data Inspector sessions, Signal Analyzer sessions, and Simulink test results. You can now query MLDATX file types and descriptions.
To determine the type of MLDATX file, use the matlabshared.mldatx.getType function.
matlabshared.mldatx.getType("myFile.mldatx")ans =
'Simulation Data Inspector File'To get a description of the data contained in an MLDATX file,
use the matlabshared.mldatx.getDescription
function.
matlabshared.mldatx.getDescription("myFile.mldatx")ans =
'Contains Simulation Data Inspector data.'
Configure Simulation Data Inspector comparisons to ignore signal unit mismatches
Before R2025a, the Simulation Data Inspector always compared signals units when comparing
signals. Now, you can specify the name-value argument "Units=Ignore" in
the Simulink.sdi.compareRuns and Simulink.sdi.compareSignals functions to ignore signal unit mismatches. When
you do not specify the Units name-value argument
as"Ignore", the Simulation Data Inspector compares signal units only
when both the baseline and comparison signals have units.
Choose whether to export data to the workspace when clearing the Simulation Data Inspector
Before R2025a, the Simulink.sdi.clear function always exported
data from the Simulation Data Inspector repository to the workspace before deleting runs.
Now, to reduce the time needed to clear the Simulation Data Inspector repository, you can
choose not to export data to the workspace before deleting.
Simulink.sdi.clear(Export=false)
Stream fixed-point data to a MATLAB callback function during simulation
Use the data access functionality in the Instrumentation Properties dialog box of a logged signal with fixed-point data to stream that data to a MATLAB callback function during simulation.
Post-process parsim and batchsim simulation
results
Starting in R2025a, you have multiple options to post-process parsim and
batchsim simulation results.
You can specify a location path for the simulation results while running
parsim and batch simulations with the
simulink.multisim.DesignStudy object. You can use the
OutputLocation name-value pair with the parsim and
batchsim functions when using the
simulink.multisim.DesignStudy object for your simulation
inputs.
To allow parallel post-processing of the simulation results, you can now use a custom
MATLAB datastore, MultisimDatastore.
MultisimDatastore can iterate over and post-process multiple
completed simulations.
Functionality being removed or changed
Support for ModelDataLogs format has been removed
Errors
Data stored in the ModelDataLogs format, including data stored in Simulink.ModelDataLogs, Simulink.Timeseries, Simulink.TSArray, and Simulink.SubsysDataLogs objects, is no longer supported. Use another supported format, such as Dataset, instead.
Live streaming no longer supported in XY visualizations
Behavior change
To avoid scalability issues, data is no longer streamed to XY visualizations in the Simulation Data Inspector, Record block, or XY Graph block.
Simulate referenced models using variable-step local solvers
You can now configure a referenced model to use a variable-step local solver. Since the local solver feature shipped in R2022a, only fixed-step local solvers were supported. When you use a variable-step local solver, the Communication step size parameter of the Model block specifies when the parent and local solvers exchange data. Within the interval between hit times for the communication step size, the variable-step local solver determines the size of each local step based on the dynamics of the continuous states in the referenced model and the tolerance values you specify for the local solver.
When you use a variable-step local solver, only Zero-order hold
input and output signal handling are supported. Variable-step local solvers do not
support:
Variable sample time. For more information, see Types of Sample Time.
Specifying output times using the Output options, Refine factor, and Output times parameters.
For more information about local solvers, see Use Local Solvers in Referenced Models. For an example of using a local solver, see Improve Simulation Performance by Using Local Solvers.
Python Code Block: Bring Python code into Simulink
Starting in R2025a, you can use the Python Code block to integrate your existing Python code into Simulink. This block enables you to import or write native Python code directly within the block dialog box. You can use the block dialog box to define block input ports, output ports, parameters, and persistent variables that interface with the Python code. For an example of using Python code, see Integrate Low Pass Filter Python Code into Simulink Using Python Code Block.
To integrate Python code using the Python Code block, in the block dialog box:
In the Ports and Parameters table, define input ports, output ports, parameters, and persistent variables.
On the Initialize tab, perform one-time setup tasks like importing class from module and initializing the class.
On the Output tab, specify the code for defining the outputs of the block at every time step.
On the Terminate tab, specify tasks for the block to perform before the end of simulation.


Zero-crossing detection, instance parameter, operating point, and fast restart support for fixed-step and variable-step local solvers
Both fixed-step and variable-step local solvers now support:
Zero-crossing detection
Instance parameters in all simulation modes
Saving final operating points and loading initial operating points in normal mode simulations
Fast restart for normal mode simulations
Since the local solver feature shipped in R2022a, local solvers have not supported zero-crossing detection, saving and loading operating points, or fast restart. Model arguments were supported only in normal mode simulations. For more information, see Use Local Solvers in Referenced Models.
Simulink Units: Physical quantity-only specifications now supported
Simulink now supports physical quantity-only unit specifications. This support enables
blocks to accept any kind of unit for the Unit parameter
specification using the format inherit@physical
quantity, @physical quantity,
or an expression of units, also known as derived units. For more information, see Physical Quantity-Only Specifications.
Connect In Bus Element and Out Bus Element blocks to components by port name
When you connect multiple In Bus Element or Out Bus Element blocks to a Subsystem or Model block at once, the software now connects the ports based on port name matches before other criteria.
To connect multiple In Bus Element or Out Bus Element blocks to a Subsystem or Model block at once:
Select the In Bus Element or Out Bus Element blocks.
Press Ctrl and click the Subsystem or Model block.

The software continues to connect Subsystem and Model blocks based on port name matches before other criteria.
For more information, see Connect Blocks.
Simplify component interfaces with bus element ports programmatically
To simplify subsystem and model interfaces with bus element ports, you can now use these functions:
simplifyInterfacesWithBusPorts — Update a model or subsystem
file to use bus element ports for buses at the model and subsystem
interfaces.
createBusPort — Create a bus element port from a Bus
Creator or Bus Selector block connected to a port
block.
For more information, see simplifyInterfacesWithBusPorts and createBusPort.
Faster rebuild checks for model hierarchies with changes in referenced models
When you modify a referenced model without changing its interface or making changes to its
parent models, the model reference rebuild checks are now faster. This performance
improvement applies when the referenced model and its parent models simulate in accelerator
mode and the Rebuild configuration parameter of the
top model in the model hierarchy is set to If changes in known dependencies
detected. In this scenario, the rebuild checks no longer check for
structural changes in the parent models.
For example, open and simulate a model hierarchy. The simulation generates model reference simulation targets for the referenced models that simulate in accelerator mode.
openExample("aeroblks_hl20/HL20ProjectWithOptionalFlightGearInterfaceExample") openProject("asbhl20"); simIn = Simulink.SimulationInput("asbhl20"); simIn = setModelParameter(simIn, SimulationMode="accelerator"); simOut = sim(simIn);
Modify a referenced model in a way that does not affect its interface. For example, change how to process the inputs of a Sum block.
load_system("asbhl20_FCSApp") set_param("asbhl20_FCSApp/Sum3", Inputs="+-|") save_system("asbhl20_FCSApp")
In this example, when you simulate the model hierarchy again, the parent model simulation target code recompiles about 4x faster than in the previous release.
simOut = sim(simIn);
The build summaries indicate that the approximate code recompilation times are:
R2024b: 13.7 s
R2025a: 3.57 s
This evaluation was performed on a Windows 11, AMD EPYC 74F3 @ 3.19 GHz test system.
For information on how to identify interface changes and structural changes, see Determine Why Simulink Accelerator Is Regenerating Code.
Choose diagnostic action to take when find_mdlrefs function finds
invalid referenced model names
To control whether the find_mdlrefs function provides an error,
warning, or no diagnostic for invalid model names, set
InvalidModelNames to "error",
"warning", or "ignore".
For more information, see find_mdlrefs.
find_mdlrefs function lets you specify filename with
extension
When you specify a filename for the first argument of the
find_mdlrefs function, you can now specify the filename with or
without the extension. Previously, you could not specify a filename with an
extension.
For more information, see find_mdlrefs.
Search under model blocks in model hierarchy using the Simulink.findBlocks and find_system functions
When you use the Simulink.findBlocks and find_system functions, you can now set the LookUnderModelBlocks option to enable search under blocks in a model hierarchy. For example, find_system("mymodel",LookUnderModelBlocks=on,BlockType="Constant") searches for Constant blocks under all blocks in the top-level model mymodel and its referenced models.
Simulink cache file information is more complete
Simulink cache file information now includes the compiler used to generate each build
artifact, when applicable and available. To get the compiler information for a build
artifact, open the Simulink cache report or use the slxcinfo function.
When you build a model hierarchy, the build log now helps you diagnose why the build did not unpack a Simulink cache file. For example, the build log now lets you know when the software is unable to find a Simulink cache file for a referenced model.
For more information about Simulink cache files, see Share Simulink Cache Files for Faster Simulation.
Pre-configured color palettes in Sample Time Legend
Starting in R2025a, Simulink provides two pre-configured sample time color palettes.
The color blind accessible palette provides a color palette that is more accessible.
simulink.sampletimecolors.applyPalette('color blind accessible(built in)')The classic color palette provides more colors for different sample times than the default color palette. The classic palette contains come of the legacy sample time colors from prior to R2023b release.
simulink.sampletimecolors.applyPalette('classic(built in)')
Define variant control variables for Initialize Function, Reset Function, Reinitialize Function, and Terminate Function blocks in mask and model workspaces
Previously, variant control variables for Initialize Function, Reset Function, Reinitialize
Function, and Terminate Function blocks could originate from
the base workspace or a data dictionary. Attempts to use variant control variables from the
mask or model workspaces resulted in errors. Starting in R2025a, you can define variant
control variables for these blocks in the mask or model workspaces when the Generate
preprocessor conditionals parameter is set to off. Using mask
and model workspace variables as variant control variables limits the scope of the variables.
Limiting the scope helps avoid name conflicts and establishes clear ownership of the variable
between the blocks.
Consider a model Vehicle that compares the fuel efficiency of petrol and
diesel engine configurations for cars and trucks under various driving conditions. The model
includes model reference blocks Truck_Configuration and
Car_Configuration, which reference the Truck and
Car models, respectively. Within the
Truck_Configuration block, there are two Initialize
Function blocks for petrol and diesel engines to adjust parameters such as fuel
consumption, throttle, and bias for each engine type. Similarly, the
Car_Configuration includes the engine settings for cars. Each model uses
a variant control variable, cfg, defined in their respective model
workspaces. In the Truck model, cfg is set to
1, activating the petrol configuration, while in the
Car model, cfg is set to 2,
activating the diesel configuration. Previously, you could define cfg in
the base workspace or in a data dictionary only, which prevented the use of different values
for cfg in separate models. In this example, with the model workspace,
cfg is scoped individually within each model, allowing for different
values in the car and truck configurations.
When using mask and model workspace variables as variant control variables in the variant
blocks, the generated code contains only the active choice. This occurs because support for
these workspaces is available only when the Generate preprocessor
conditionals parameter is set to off, which corresponds to
setting the update diagram variant
activation time.
For information on how to limit the scope of variant control variables using mask and model workspaces in variant blocks, see Approaches to Control Active Variant Choice of a Variant Block Using Mask or Model Workspace.
Define variant control variables in reusable subsystems in mask workspaces
In previous releases, variant control variables for a variant block with the
Variant activation time parameter set to
startup, located within a reusable subsystem, could only
originate from the base workspace, model workspace, or a data dictionary. Attempts to use
variables from the mask workspace of the reusable subsystem resulted in errors.
Starting in R2025a, these variables can now originate from the mask workspace of a reusable subsystem. This enhancement enables you to encapsulate and manage variant control variables effectively within the subsystem.
For information on how to define variant control variables in the mask workspace, see Control Structural Variations Using Mask Parameters and Model Arguments.
Access compiled properties of inactive blocks
Starting in R2025a, you can access the compiled properties of inactive blocks that are
connected to variant blocks with the Variant activation time parameter
set to update diagram analyze all choices or code
compile. In previous releases, setting the Variant activation
time parameter to update diagram analyze all choices
or code compile resulted in empty compiled properties for inactive
blocks.
This table lists the compiled properties returned for different activation times:
| Variant activation time | Compiled properties for model |
|---|---|
update diagram | Compiled properties only for active choices are available. |
update diagram analyze all choices | Compiled properties for active and inactive choices are available. |
code compile | Compiled properties for active and inactive choices are available. |
startup | Compiled properties for active and inactive choices are available. |
runtime | Compiled properties for active and inactive choices are available. |
Consider the Variant Sink block in the
slexVariantSourceAndSink model that has the Variant activation
time parameter set to code compile. The variant
control variable W controls the variant choices in this block. The first
variant choice activates when the variant control expression W == 1
evaluates to true, and the second variant choice activates when the variant
control expression W == 2 evaluates to true. To compile
the model with the first variant choice active and the second variant choice inactive, set the
value of W to 1, and then initiate the compilation phase
using this command in the MATLAB Command Window. For more information on how to run specific phases of the model,
see Use Model Name as Programmatic Interface.
slexVariantSourceAndSink([],[],[],"compile");The first variant choice becomes active and the second variant choice becomes inactive.

You can then retrieve the compiled information of inactive blocks for properties listed in Programmatically Specify Block Parameters and Properties.
For example, to retrieve the structure of port widths of the Gain2
block, which is inactive, use this command.
get_param(gcb,"CompiledPortWidths");Of all the properties, CompiledPortDesignMin and
CompiledPortDesignMax require blocks to be active to determine the
minimum and maximum values that a block's ports can accommodate during simulation. These
properties return empty values for inactive blocks.
Input to output mapping in Variant Subsystem blocks with no active variant choices
Starting in R2025a, the Variant Subsystem block includes a new Built-in passthrough choice parameter and a renamed Built-in empty choice parameter in the Block Parameter dialog box for handling scenarios when none of its variant choices are active. These updates also apply to the Convert Subsystem to Variant Subsystem dialog box.
Built-in passthrough choice — When you select the new
Built-in passthrough choice parameter, Simulink adds a nonmodifiable variant choice entry to the Variant
choices table with its variant control set to
(default). This entry enables the input port values to be assigned to
the output ports when no variant choice is active. This entry does not appear as a
visible variant choice in the Variant Subsystem block. This functionality
applies to Variant Subsystems that:
Have only data ports, with no other types of input and output ports
Have an equal number of data input and output ports for variant choices
Have input and output ports that exactly match the ports of variant choices
Programmatically, use the PassThrough parameter to assign the
input port value to the output port when no variant choice is active.
set_param(gcb,PassThrough="on")
The generated code remains consistent with the Allow zero active variant
controls parameter from previous releases, except that it now assigns
input port values to the output port in the else condition.
Built-in empty choice — The Allow zero active variant
controls parameter is now renamed to Built-in empty
choice. When you select this parameter, Simulink adds a nonmodifiable variant choice entry to the Variant
choices table with its variant control set to
(default). This entry enables the output port to continue grounding
to zero when no variant choice is active, as in previous releases. This entry does not
appear as a visible variant choice in the Variant Subsystem block
Programmatically, you can use the AllowZeroVariantControls
parameter to ground the output when no variant choices are active. However,
AllowZeroVariantControls will be removed in a future release.
Instead, use the EmptyChoice parameter:
set_param(gcb,EmptyChoice="on")
The generated code remains consistent with the Allow zero active variant
controls parameter from previous releases, where zero is assigned to the
output port in the else condition.

If you export a model containing a Variant Subsystem block with either the Built-in empty choice or Built-in passthrough choice parameter selected to an earlier release, the Variant Subsystem in the exported model has the Allow zero active variant control parameter selected.
For more information, see Manage Variant Components to Pass Specified Values from Inactive Variant Subsystems with No Active Choice (Simulink Coder).
Resolve memory contentions in Variant Subsystems with automatic signal conversion
Previously, when the Outport blocks of a Variant Subsystem block received signals from a single source, errors due to memory contention could occur. The error included a Fix button, prompting you to insert a Signal Conversion block at the source of the Outport blocks to resolve the incompatibility issue.
Starting in R2025a, Simulink inserts the Signal Conversion block at the source of the Outport blocks to temporarily store signal data in memory, allowing signals to be processed sequentially, thus eliminating the need for manual fixes.
Reduce overhead and irrelevant diagnostic messages by suppressing callbacks for inactive variant choices and commented blocks
Previously, Simulink executed block callbacks whenever the modeling action associated with the
callback occurred, regardless of whether the block was active or uncommented. Starting in
R2025a, Simulink suppresses block callbacks for inactive variant choices of Variant Subsystem blocks with the update diagram
activation time and for commented blocks during operations such as loading, compiling,
simulating, saving, and closing the model. This enhancement reduces computational overhead and
prevents unnecessary diagnostic messages from blocks that do not impact the current iteration
of the model.
This change applies to the block callbacks, including the LoadFcn
callback, as listed in the table below. For example, Simulink does not execute the LoadFcn callback for inactive variant
choices, even when you attempt to find the active and inactive variant choices by using the
@Simulink.match.allVariants match filter in the find_system function.
While other block callbacks require certain modeling actions to execute, you are not
required to perform actions, such as reloading the model, for the LoadFcn
to execute in each iteration. Simulink automatically runs the LoadFcn callback of a block whenever
it determines that the block is active or is uncommented. Once Simulink executes the LoadFcn in an iteration, it is not triggered
again if the block becomes inactive and then active in subsequent iterations, as it is already
executed to avoid redundant executions.
This table lists the suppressed block callbacks for inactive variant choices of
Variant Subsystem blocks with the update diagram
activation time and the commented blocks. For detailed information on these callbacks, see
Block Callbacks.
| Block Callback Parameter | When Callback Executes |
|---|---|
ContinueFcn | Before the simulation continues |
InitFcn | Before the block diagram is compiled and before block parameters are evaluated |
LoadFcn | After the block diagram is loaded |
ModelCloseFcn | Before the block diagram is closed |
PauseFcn | After the simulation pauses |
PostSaveFcn | After the block diagram is saved |
PreSaveFcn | Before the block diagram is saved |
StartFcn | After the block diagram is compiled and before the simulation starts |
StopFcn | At any termination of the simulation |
Suppression of block callbacks does not apply in these scenarios:
Callbacks for these block-specific operations such as cut, copy, paste, and delete are not suppressed. For detailed information on these callbacks, see Block Callbacks.
| Block Callback Parameter | When Callback Executes |
|---|---|
ClipboardFcn | When the block is copied or cut to the system clipboard |
CloseFcn | When the block is closed using the close_system
function |
CopyFcn | After a block is copied |
MoveFcn | When the block is moved or resized |
NameChangeFcn | After a block name or path changes |
OpenFcn | When the block is opened |
ParentCloseFcn | Before closing a subsystem containing the block |
PreCopyFcn | Before a block is copied |
PreDeleteFcn | Before a block is graphically deleted |
UndoDeleteFcn | When a block deletion is undone |
DeleteChildFcn | After a block or line is deleted in a subsystem |
SCDConfigFcn | After the configuration of the System Composer™ model changes |
DeleteFcn | After a block is graphically deleted |
DestroyFcn | After a block is graphically deleted |
The callbacks for blocks within models or subsystem files inside a commented or an inactive Model block or Subsystem Reference block are not suppressed.
The mask initialization and mask parameter callbacks are not suppressed. For the list of applicable callbacks, see Author Mask Initialization and Callbacks and Mask Parameters.
Detect undefined variant control variables in Variant Source and Variant Sink blocks during edit-time
Starting in R2025a, Variant Source and Variant Sink blocks issue errors for undefined variant control variables during model editing. The blocks indicate errors with a red highlight around the border. To see a description of the issue, pause on the highlighted block. You can then click the error symbol to open the notification dialog box that lists predefined fixes. Select the most appropriate fix to resolve the issue, and click the Fix button. Depending on the chosen solution, you may need to provide additional information to resolve the error. After the fix is applied, the red border disappears, indicating the issue is resolved. If the fix is unsuccessful, a failure message is displayed.
Consider a model that contains a Variant Source block
Controller, which has two input ports.

In the Block Parameters dialog box of the Controller
block, specify the variant control expressions enumController.manual == 1
and enumController.sensor == 1. The expressions use the enumeration class
enumController and its enumeration values, which are not defined.

After applying the changes, when you close the Block Parameters dialog box, a
red highlight appears on the border of the block indicating that the
enumController class is invalid. Pause on the block and then click the
error symbol. From the notification dialog box, select the fix that corresponds to
Create a new enumeration type.

In the Create New Enumerated Type dialog box, specify the required details for the
enumeration class enumController, and then click
Create.

Navigate through the explorer to specify the location where the model is stored, or choose
a location already added to the MATLAB path to create the enumController enumeration class in the
file enumController.m. The enumeration class is an integer-based
enumeration derived from the built-in data type int32. It includes two
enumeration values manual and sensor with underlying
integer values 0 and 1, respectively. The values are
organized alphabetically.
classdef enumController < Simulink.IntEnumType enumeration manual(0) sensor(1) end methods (Static) function retVal = getDefaultValue() retVal = enumController.manual; end end end
Make any necessary changes according to your requirements. Once the changes are applied, the red highlight on the border disappears, indicating the issue is resolved.
Simulate and generate code for models with variant parameters in model workspace
Starting in R2025a, simulation and code generation is supported for models that define
variant parameters (Simulink.VariantVariable objects) in the model workspace. To simulate or generate
code from such models, set the ActivationTime
property of the Simulink.VariantControl object used as the variant control
variable for the variant parameter to update diagram,
update diagram analyze all choices, or
startup. The objects associated with the variant parameter object
such as the Simulink.VariantControl object, the Simulink.Parameter object used
to set the Specification
property, and any Simulink.Parameter objects used as values of the variant
parameter must be defined in the model workspace along with the parameter.
For more information, see Configure Variant Parameter Values for Instances of Referenced Models and Generate Code for Instance-Specific Variation of Variant Parameter Values in Model Reference Hierarchy (Simulink Coder).
Configure code generation for variant parameters in model workspace using Code Mappings editor
You can use the Code Mappings Editor —
C (Embedded Coder) to configure the code generation attributes for ERT-based and GRT-based targets
for Simulink.VariantVariable and Simulink.VariantControl
objects defined in the model workspace of a model. The objects are listed in the Code Mappings
editor if:
The Simulink.VariantControl object has its
Value property set to a Simulink.Parameter
object.
The Simulink.VariantVariable has its
Specification property set to a
Simulink.Parameter object.
If the model is configured to use a data code interface, you can specify a storage class
defined in the Embedded Coder Dictionary that is associated with the model. If the model uses
service code interfaces defined in a shared Embedded Coder Dictionary, you can map the
Simulink.VariantVariable and Simulink.VariantControl
objects to parameter tuning and parameter argument tuning service interfaces, which enables
you to configure the parameters to be tunable in the generated code.
The Parameters tab of the Code Mappings editor shows the variant
parameters and the associated objects, grouped by category. Variant parameter and variant
control objects that are defined in the base workspace are in the External Parameter
Objects category. For variant parameters, Storage Class is
set to read-only because it is derived from the Specification object
associated with the parameter.

These functions provide programmatic support for Simulink.VariantVariable
and Simulink.VariantControl objects in the code mappings programming interface.
| Function | Purpose |
|---|---|
setModelVariantControl (Simulink Coder) | Set code mapping properties of
|
getModelVariantControl (Simulink Coder) | Get code mapping properties of
|
getModelVariantVariable (Simulink Coder) | Get code mapping properties of
|
You can now use these values for the elementCategory argument of the
find (Embedded Coder) function,
which finds model elements in the code mapping categories.
| Argument value | Purpose | Example |
|---|---|---|
"ModelVariantControls" | Find Simulink.VariantControl objects present in the model
code mappings |
% Find |
"ModelVariantControlArguments" | Find Simulink.VariantControl objects set as model
arguments and present in the model code mappings |
cm = coder.mapping.api.get(modelname);
find(cm,"ModelVariantControlArguments"); |
"ModelVariantVariables" | Find Simulink.VariantVariable objects present in the model
code mappings |
cm = coder.mapping.api.get(modelname);
find(cm,"ModelVariantVariables"); |
For an example, see Configure Code Generation for Variant Parameters in Model Workspace Using Code Mappings Editor (Simulink Coder).
Generate code for variant parameters with code compile
activation time defined in a data dictionary linked to a subsystem file
Starting in R2025a, you can generate code for variant parameter (Simulink.VariantVariable) objects with variant activation time set to
code compile when they are defined in a data dictionary linked
to a subsystem file. Previously, code generation was supported for such variant parameters
only for variant activation times other than code compile.
Specify separate memory sections, header, and definition files for the parameter structure array and pointer used by a variant parameter bank
Before R2025a, when you grouped variant parameters in a model using variant parameter banks
(Simulink.VariantBank objects), you could specify only a single memory
section to place the structure array that groups the parameter values and the pointer that
selects the active set of values from the array. The code generator placed the declarations
and definitions of both the array and the pointer in the same header and definition files that
you specified.
Starting in R2025a, you can specify separate memory sections, header, and definition files to place the structure array and pointer in the generated code. You can also specify a type qualifier that is applied to the declaration and definition of the array and pointer variables in the code.
To support these enhancements, the Simulink.VariantBank class has two new properties, AllChoicesCoderInfo and ActiveChoiceCoderInfo. The Simulink.VariantBankCoderInfo class has a new property named Qualifier.
For an example on variant parameter banks, see Group Variant Parameter Values and Conditionally Switch Active Value Sets in Generated Code (Embedded Coder).
The BankCoderInfo property of the
Simulink.VariantBank class will be removed. Use the
AllChoicesCoderInfo and ActiveChoiceCoderInfo
properties instead. If your existing code sets the BankCoderInfo
property, Simulink uses this value to automatically set the value for the
AllChoicesCoderInfo and ActiveChoiceCoderInfo
properties.
Set value of Simulink.VariantControl object and values of
Simulink.VariantVariable choices to mathematical expressions
You can set the value of a Simulink.VariantControl object and the values of
a Simulink.VariantVariable object to mathematical expressions and then use
Embedded Coder® to generate code that preserves these expressions.
Create a Simulink.Parameter object or an object of a class that
inherits from Simulink.Parameter.
Set the Value property of the object to the expression by
using the slexpr function.
Use the object to set the value of the variant control or the values of the choices of a variant parameter.
For relevant code generation capabilities and considerations, see Code Generation of Parameter Objects With Expression Values (Embedded Coder). For an example, see Use Mathematical Expressions as Values of Simulink.VariantControl Objects and Simulink.VariantVariable Choices.
Use variant parameter banks in model reference hierarchy
You can simulate and generate code for a model reference hierarchy that uses a variant
parameter bank (Simulink.VariantBank) to group variant parameters (Simulink.VariantVariable objects) used by models across the hierarchy. Previously,
when you used Embedded Coder to generate code that switches parameter banks using a pointer variable, model
reference hierarchy was not supported. Starting in R2025a, the code generator identifies all
variant parameters in a variant parameter bank within the base workspace or data dictionaries
visible to the model hierarchy and includes them in the parameter bank definition. The header
file that contains the type definition of the variant parameter bank is generated in a shared
utilities folder slprj/target/_sharedutils, where target
is the name of the system target file for code generation. This mechanism enables sharing the
variant parameter bank across multiple models in the hierarchy. For an example, see Generate Code for Variant Parameter Banks in Model Reference Hierarchy (Embedded Coder).
Use Parameter Writer block to initialize variant control value of variant parameter
You can use Parameter Writer blocks within an Initialize
Function block to initialize Simulink.VariantControl objects
associated with a variant parameter (Simulink.VariantVariable) with startup activation time.
For an example, see Initialize Variant Control Value of Variant Parameter Using Parameter Writer Block.
Variant Manager for Simulink: Support for Subsystem files
You can now launch Variant Manager on a Subsystem block diagram and define variant configurations for the block diagram by using the Variant Manager for Simulink software support package. Variant Manager supports operations such as:
Importing variant control variables, defining and activating variant configurations, defining constraints, and finding control variable usage in a configuration
Visualizing and interacting with the model hierarchy
Composing top-level configurations using referenced component configurations
Defining a variant configuration data object for the Subsystem block diagram to save the variant configurations and constraints, and exporting the object to a MAT file or MATLAB script file for reuse
Variant Manager does not support these functionalities with Subsystem block diagrams from the user interface or from the MATLAB Command Window.
Generating variant configurations automatically
Obtaining compile-time information using Update Model
Using Variant Reducer and Variant Analyzer
Variant Manager for Simulink: Support for variant parameters, and Variant Start and Variant End blocks when generating variant configurations
When you generate variant configurations automatically by using Variant Manager or the
Simulink.VariantManager.generateConfigurations function, the process also
supports these modeling elements:
Variant parameters (Simulink.VariantVariable objects) that are defined in the base workspace or
data dictionaries linked to the model
Variant Start and Variant End blocks
The auto-generation process identifies variant control variables used by these modeling elements and includes their possible combinations when generating variant configurations for the model.
Variant Manager for Simulink: View variant configuration definition in Simulink Test Manager results and reports
When using a variant configuration to run a test case or test iterations in Simulink Test Manager, you can view the definition of the applied variant configuration in the test case results and test iteration results. This enhances traceability from test results to the variant configuration definition used during testing.
To view this definition in the Simulink Test Manager user interface, double-click the test case or iteration result in
the Results and Artifacts pane and check the Variant
Configuration Details section in the results tab. Alternatively, access the
VariantConfiguration property in the sltest.testmanager.TestCaseResult (Simulink Test) and sltest.testmanager.TestIterationResult (Simulink Test) classes to view this data. Additionally,
the test results report generated with the sltest.testmanager.report (Simulink Test) method includes the variant configuration definition.
For an example, see Run Tests for Variant Models Using Variant Configurations.

Variant Manager for Simulink: Define constraints by using referenced component configurations
Starting in R2025a, you can use Variant Manager to define constraints for variant configurations of a top-level model by using predefined variant configurations of referenced components in the model hierarchy. In this way, you can define constraints as condition expressions that include names of referenced component configurations. You can also combine configuration names with variant control variables in the condition expression. Previously, you could specify condition expressions using only the variant control variables used by the model hierarchy.
The function isConfigActive
checks if a specified variant configuration is the active configuration for a model. Use this
function to specify a component configuration name when defining the constraint, either from
the Variant Manager user interface or by using the addConstraint function.
For steps to define a constraint using component configurations from Variant Manager, see Set Up Constraints by Using Component Configurations View.
To verify if a constraint is satisfied by a model and the referenced components in its
hierarchy, use the function Simulink.VariantManager.validateConstraint.
Variant Manager for Simulink: Create variant banks to group variant parameters from Variant Manager
Variant Manager now supports creating variant banks to group variant parameters from the
Bank view in the Variant Parameters tab. You can
either create a new variant bank for the parameters or add them to an existing variant bank.
To associate a parameter or a group of parameters with a variant bank, in the
Variant Parameters without a variant bank section, on the header row
of the required group, click the Create Simulink.VariantBank button
. Alternatively, right-click the row and select
Create Simulink.VariantBank from the context menu. For more
information, see Create Variant Banks for Variant Parameters from Variant Manager.
Variant Manager for Simulink: Support for Variant Assembly Subsystem reduction
Variant Reducer now supports reduction of models that contain Variant Assembly
Subsystem blocks. For a Variant Assembly Subsystem block in
expression mode that uses an enumeration to add variant choices, Variant Reducer generates
reduced enumeration definitions that retain only the members corresponding to the retained
variant configurations. Depending on the definition in the parent model, the reduced
enumeration is defined either in a class file, in a reduced data dictionary, or in the
PostLoadFcn callback of the reduced model using the function
Simulink.defineIntEnumType for in-memory enumerations in the
MATLAB workspace.
Hide implementation details of custom library blocks to prevent accidental changes
To prevent any accidental changes to your custom library blocks, you can now disable the option to view their implementation details.
To hide the implementation details, select the Subsystem block in the custom library, and
then in the Subsystem Block tab in the Simulink Toolstrip, click 'Look Inside' is Allowed in the
Look Inside section. This disables the option to view the
implementation details of the Subsystem block, both through the user interface and
programmatically by using open_system(blk,"force"), where
blk is the full name or path of the block in the open or loaded
model. These changes apply only to the selected block within the library and not the entire
library.
For more information, see Hide Library Block Details in Create Custom Library.
Import types from C++ code into Architectural Data section of Simulink data dictionary
Starting in R2025a, you can use the new DataDictionarySection argument for the
Simulink.importExternalCTypes function or DataDictionarySection property of
Simulink.CodeImporter.Options class to import types from C++ code into
the Architectural Data
Editor section of a data dictionary. When importing types that are defined under
namespaces, the namespaces are synchronized with the C++ Namespace code
generation property of the architectural data type. In previous releases, you could import
data types only into Design Data section.

New example migrating to a service-oriented architecture
A new example shows how to migrate a signal-based model to a service-oriented architecture. For more information, see Migration to Service-Oriented Architecture Using Model-Based Design.
Use Simulink.VariantControl object to specify active variant of
VariantSubsystem block with runtime variant
activation time
You can now use a Simulink.VariantControl object to specify variant condition expressions in a
Variant Subsystem block with
runtime variant activation time. By specifying the
ActivationTime property of the object as
'runtime', you can change the active variant of a Variant Subsystem block during simulation or during execution of generated code
by modifying the value of the Simulink.VariantControl object through a Parameter
Writer block. In addition, when a Variant Subsystem block has
Variant activation time set to Inherit
from Simulink.VariantControl, the block can now inherit a variant
activation time of runtime from its variant control variables of
type Simulink.VariantControl.
For more information, see Control Active Choice of Variant Subsystem During Simulation or Execution of Generated Code.
Pass different values for variant control variable to instances of Model block
by configuring Simulink.VariantControl object as model argument
When you use a Simulink.VariantControl object as a variant control variable in a Variant Subsystem, Variant Sink, Variant Source, or Variant Start
block, you can now configure the variant control variable as a model argument and pass
different values for the variable to each instance of a Model block. Similarly, when you use a Simulink.VariantControl
object as a variant control variable in a Simulink.VariantVariable object, you can configure the variant control variable
as model argument and pass different values to each instance of a Model block
to have different values for the Simulink.VariantVariable object in the
child model. You can generate code for a Simulink.VariantControl object
used as a model argument with variant blocks or with variant parameters.
When you configure a Simulink.VariantControl object as a model argument:
The object must be in the model workspace.
The value of the object must be a Simulink.Parameter object or a
numeric type.
ActivationTime property must be set to
startup or
runtime.
To configure a Simulink.VariantControl object as a model argument, in the
Model Explorer, select Argument for the object.
For more information, see Control Active Choice of Variant Subsystem During Simulation or Execution of Generated Code.
Control run-time variant control variables from external code by using the C API
Previously, when you used a Variant Subsystem block with the
Variant activation time parameter set to
runtime, you modified the variant control variable used to
switch the active variant choice by using a Parameter
Writer block within the model. In R2025a, you can also modify the control
variable from external code by using the C API interface. To enable C API code generation
for control variables, select the model configuration parameter Generate
C API for: parameters (Simulink Coder).
For more information on run-time variants, see Control Active Choice of Variant Subsystem During Simulation or Execution of Generated Code.
For more information on using the C API interface, see Get Started with C API (Simulink Coder).
Functionality being removed or changed
Models created from subsystems avoid implicit signal resolution
Behavior change
When you convert a subsystem to a model and the parent model has the Signal
resolution configuration parameter set to
Explicit and implicit or Explicit
and warn implicit, the configuration set of the new model
changes Signal resolution to Explicit
only. This change avoids implicit signal resolution to
Simulink.Signal objects in the new model.
For more information, see Convert Subsystems to Referenced Models and Signal resolution.
Model reference conversion detects unsupported Parameter Writer block configurations
Behavior change
When you convert a subsystem to a model, the conversion now checks for Parameter Writer blocks that write to:
A block outside the subsystem
A base workspace variable used outside the subsystem
A model workspace variable
When a Parameter Writer block writes to one of these destinations, the conversion now detects the issue and fails. In previous releases, the conversion succeeds, but compiling or simulating the new model hierarchy results in an error.
For more information about the conversion process, see Convert Subsystems to Referenced Models.
For more information about Parameter Writer blocks, see Parameter Writer.
find_mdlrefs function honors KeepModelsLoaded
value when error occurs
Behavior change
When the software encounters an error while executing the
find_mdlrefs function, the KeepModelsLoaded
value now determines whether the software closes the models that the function loads. By
default, the software closes the models that the function loads.
For more information, see find_mdlrefs.
find_mdlrefs function consistently provides output model names as
1-by-n cell array
Behavior change
The find_mdlrefs function now consistently provides the output model
names as a 1-by-n cell array. Previously, when the function returned no
model names, the output was a 0-by-1 cell array instead of a 1-by-0 cell array.
New warning for always false default variant choices
Warns
Starting in R2025a, Simulink issue a warning if a variant block has a variant choice set to
(default) that is never active during simulation or code
generation, helping identify potentially unintended configurations within the model. In
previous releases, Simulink did not issue a warning.
Consider a model containing a Variant Source block with three variant
choices, where the third choice is set to (default). The variant
control variable associated with the block is V. The variant control
expressions for the first and the second choices are V ~= 1 and V
~= 2, respectively.
If you set V to 1 and simulate the model, V
~= 2 evaluates to true during simulation, activating the
second variant choice. If you set V to 2, the first
choice becomes active. However, if V is set to any value other than
1 or 2, both the first and second choices become
active, which results in an error since only one choice should be active at a time. In all
scenarios, regardless of the value of V, the default variant choice always
evaluates to false, making it never active. For such configurations, where
the default variant choice is always false, Simulink issues a warning.
For more information, see Default Variant Choice.

BankCoderInfo property of Simulink.VariantBank class
replaced with AllChoicesCoderInfo and
ActiveChoiceCoderInfo
Behavior change
The BankCoderInfo property of the Simulink.VariantBank
class will be removed. Use the AllChoicesCoderInfo and
ActiveChoiceCoderInfo properties instead to specify code generation
attributes for the parameter data array and the pointer variable corresponding to a variant
parameter bank. If your existing code sets the BankCoderInfo property,
Simulink uses this value to automatically set the value for the
AllChoicesCoderInfo and ActiveChoiceCoderInfo
properties.
Parameterized library links will be removed
Still runs
Support to modify parameter values in linked library blocks in models will be removed in a future release. To modify the parameter values, you must either disable the library links or change the parameter values in the parent library blocks. For information on disabling library links, see Disable or Break Links to Library Blocks.
Simulink no longer converts value of Simulink.VariantControl objects with
startup activation time and integer-convertible
double data type to int32
Behavior change
Before R2025a, when you specified the value of a Simulink.VariantControl object with startup variant
activation time as an integer-convertible double data type, Simulink implicitly converted the value to int32. In R2025a, this
conversion is no longer performed. When you generate code for models that use such variant
controls, the code generator declares the variant control variable to be of
double data type instead of int32.
Simulink Comparison and Merge Tools: Updates to the engine and user interface
Starting in R2025a, the Simulink Comparison Tool and Three-Way Merge Tool have new user interfaces that include improvements and new features.
Improvements include:
Algorithm updates to improve how the reports display Simulink parameter and structure comparisons
Algorithm updates to support more Stateflow elements merging, state transition tables, and Simulink Code mappings comparisons
Showing model workspace variable comparison in the two and three-way merge reports
Expanded support to display text comparisons for Simulink parameter values, such as LoadFcn and
CloseFcn
Improved line and segment manual and automatic merges. Segment merges are now handled by their owning lines.
Support for find in Simulink three-way merge reports
Simulink Comparison and Merge Tools: Simplify reports using Quick Filters
Starting in R2025a, when you compare or merge files you can simplify the reports using the Quick Filters pane. For more information, see Filter Comparison Report Using Quick Filters.
Comparison and Merge Tools: View tag and branch details for files under source control
Starting in R2025a, when you compare or merge files under source control, the comparison and merge tools include source control information such as the branch name and tags in the files details.

Simulink Comparison: Improved published reports
Starting in R2025a, the printable report you publish from a model comparison is easier to scan and read. Improvements include:
Text formatting and highlighting when comparing MATLAB Function blocks and Simulink code parameters, such as LoadFcn
callbacks
Displaying icons next to node names and screenshots for internal test harnesses and Stateflow subcharts
Bigger default font, clearer subsection titles, and page numbering in PDF reports
For more information on how to generate a comparison report, see Export, Print, and Save Model Comparison Results.
Variable Comparison: Compare model workspace variables using new user interface
Starting in R2025a, you can compare variables in the model workspace with improved usability. For more information, see Compare Duplicate Workspace Variables.
Simulink Templates: Pin Simulink template groups
Starting in R2025a, you can pin a group of templates to appear first in the available template groups. If you pin more than one group, Simulink orders them by the most recently pinned.

For more information about creating templates, see Create Template from Model and Create Templates for Standard Project Settings.
Upgrade Advisor: Justify or fix failed checks with improved usability
The Upgrade Advisor user interface now includes a simplified toolstrip with these new features.
Filter Checks – Filter checks by status, such as
Failed, Passed, or
Justified.
Justify – Justify the violations. Justifications allow you to add a rationale for violations that you observe during the Upgrade Advisor analysis.
Fix – Fix the violations automatically when possible.
Reports – Export Upgrade Advisor analysis reports in HTML, PDF, and DOCX formats.
For more information, see Upgrade Models Using Upgrade Advisor.
Source Control: Reload Simulink models modified by source control operations
Starting in R2025a, the Simulink Editor automatically reloads models that have been modified by source control actions, such as switching Git™ branches, performing a Git pull, or executing an SVN update.
You can disable this behavior by adjusting the source control settings. For more information, see Configure Source Control Settings.
Simulink API: Ignore missing project files when exporting projects
You can now ignore missing project files when using Simulink.exportToVersion to export a project to a previous version by
setting the AllowMissingFiles argument to
true.
Automerge Examples: Set up Simulink automerge in GitLab CI/CD pipeline
This example provides scripts to enable Simulink automerge using GitLab® CD/CD. For more information, see Set Up Simulink Automerge in GitLab CI/CD Pipeline.
Design Evolution Manager: Delete multiple evolution trees
In the Design Evolution Manager app, you can delete two or more evolution trees at the same time. To delete multiple evolution trees, Shift+click to select the evolution tree names in the Tree Browser pane, then click Delete Tree.
Design Evolution Manager: Filter files in comparison view
In the Design Evolution Manager app, when you select two evolutions for comparison, you can filter files in the File Explorer pane using the new Added, Deleted, and Changed buttons.
Generate common waveforms with Live Editor
Use the Generate Waveform task to quickly generate signal data from common waveforms. The task also automatically generates code that becomes part of your live script. To add the Generate Waveform task to a live script in the MATLAB Editor, on the Live Editor tab, select Task > Generate Waveform.

In a code block in the script, type a relevant keyword, such as generate waveform, vector, timeseries, timetable, input, signal, or source. From the completed command completions, select Generate Waveform from the suggested command completions. For more information about Live Editor tasks, see Add Interactive Tasks to a Live Script.
Signal Editor tool updates
The Signal Editor tool has these updates:
Replace a signal with a waveform — In the Inputs hierarchy
pane, right-click on the signal you want to replace, select Replace the
signal with from the context menu, and select one of these
waveforms.
Constant
Step
Pulse
MATLAB expression, which starts the
Author and Replace Signal Data dialog box.
Copy and paste signal names, properties, and data
To copy all signal information, including name, properties and data, in
the Inputs hierarchy pane, right-click on the signal
you want to replace and select Copy. Then paste
in another area of the Inputs hierarchy pane. In the
hierarchy pane, you can paste to the same scenario, a different scenario, or
outside a scenario.
To copy signal data and time only, in the signal pane, copy the signal and data from the table and paste it into another row and/or column of the signal pane. The size of the pasted data and signal must match the size of the copied signal and data.
To replace all signal data with the contents of the clipboard, copy signal data from another source, such as a Microsoft® Excel® spreadsheet or another Signal Editor signal data table, and then in the signal pane, right-click and select Replace signal data with > Clipboard data. Note:
Signal data table and clipboard data table must have the same number of columns.
The first column of the clipboard data table must be monotonically increasing.
The data type of the existing signal data must be able to cast to the clipboard data.
Update a signal in the signal pane. If the signal value is outside the plot area, apply Fit to view to the plot associated with the signal in the signal pane without leaving the signal pane. To apply Fit to view to the associated plot from the signal pane, in the signal pane press Spacebar.
The signal data table now accepts hexadecimal (0x) and binary (0b) data formats. To see the data in hexadecimal or binary, the Display Format parameter now lets you set the display format for floating-point and fixed-point data to binary or hexadecimal.
To zoom out on the plot, use the Ctrl+- shortcut. Prior to R2025a, the shortcut was Ctrl+PgDn.
For more information, see Work with Basic Signal Data.
createInputDataset allows no compile
The createInputDataset function now enables
you to omit the update diagram step when generating dataset objects for root-level Inport or
bus element ports in a model. Set the name-value argument UpdateDiagram
to false.
Root Inport Mapper user interface updates
The Root Inport Mapper user interface now presents scenario mapping results in separate tabs, enabling you to visually organize these results. Prior to R2025a, all scenario mapping results were presented in one pane.
Tunable enumerated data types in generated code
Starting in R2025a, when you import an enumerated data type definition that is defined in a header file that is external to the MATLAB environment, you can control whether the enumeration values are tunable in generated code. Tunable enumerated values enable you to share data type definitions, for example, that are provided in a master data dictionary, between applications. As required, you can change, add, and reorder the enumerated values in generated code to align with requirements of each application.
For more information, see Configure Enumerated DataTypes for Tunability in Generated Code, Use Enumerated Data in Simulink Models,
Simulink.defineIntEnumType, and Simulink.importExternalCTypes.
Parameter Quantization Advisor: Simplified application of settings and app data refresh
The Parameter Quantization Advisor app has simplified application of toolstrip settings and refresh of data in the app. When you adjust settings in the app, the Parameter Quantization Advisor applies the Detect precision loss settings to the model. Data in the app is refreshed when the app is relaunched, when you update the model, or when you click the Refresh Data button.
Open Parameter Quantization Advisor app from Simulink model
In addition to opening the Parameter Quantization Advisor app from the Diagnostic Viewer, there are two new ways to open the app from a Simulink model:
Open the app from the Simulink toolstrip. On the Debug tab, under Diagnostics, click Parameter Quantization Advisor.
Use the model name to open the Parameter Quantization Advisor app from the MATLAB Command Window:
parameterQuantizationAdvisor("model_name")
Simulate models that use enumerations in MATLAB namespaces
Starting in R2025a, you can simulate Simulink models that use an enumerated type that is derived from Simulink.IntEnumType and is defined inside a MATLAB namespace. When generating C code for simulation targets, Simulink prefixes the enumerations with the MATLAB namespace. When generating C++ code for simulation targets, Simulink generates the enumerations in a namespace.
For more information, see Use Enumerated Data in Simulink Models.
Simulink.io.SignalBuilderSpreadsheet now supports csv files with headers
The Simulink.io.SignalBuilderSpreadsheet class now supports csv files with headers.
Log data to file with simulation object
Starting in R2025a, you can log data to file when using the simulation
object. Use the setModelParameter function on the
simulation object to set the LoggingToFile to
'on'.
sm = simulation('model') sm = setModelParameter(sm,LoggingToFile='on') start(sm)
Platform mapping selections moved to View tab on Architectural Data Editor toolstrip
Starting in R2025a, in the Architectural Data Editor, the Native platform option has been renamed to Architectural Data and moved to the View tab of the Architectural Data Editor toolstrip.
Functionality being removed or changed
Classic initialization mode will be removed
Still runs
The Classic option for the Underspecified
initialization detection configuration parameter will be removed in a
future release. Use the Simplified option instead. For more
information, see Underspecified initialization
detection. Simplified initialization mode helps to avoid unexpected
simulation results and improves consistency. For more information about how to switch from
classic to simplified initialization mode, see Convert from Classic to Simplified Initialization Mode.
Changes to model configuration parameter programmatic behavior
Behavior change
When you interact with model configuration parameters programmatically:
For Simulink.ConfigSet and Simulink.ConfigSetRef objects,
when accessing the Name or Description
properties by using the get_param and set_param functions, the
parameter name argument is case sensitive.
For model configuration parameters with cell array values, get_param returns an empty
1-by-0 cell array when the value is empty. Previously,
get_param returned [] when the value
was empty.
Display of Alignment property in Simulink.CoderInfo
object to include new int32 data type specification
Behavior change
Previously, the data type of the Alignment property of a
Simulink.CoderInfo object was double and was
not included in the displayed value of the property. In R2025a, the data type is
int32 and is included in the displayed value.
For example, compare the displayed value of P in R2024b and in R2025a.
In R2024b:
P=Simulink.Parameter;
P.CoderInfo.StorageClass = 'ExportedGlobal';
P.CoderInfo.Alignment = 2;
P.CoderInfo.Alignment
ans =
2
In R2025a:
P=Simulink.Parameter;
P.CoderInfo.StorageClass = 'ExportedGlobal';
P.CoderInfo.Alignment = 2;
P.CoderInfo.Alignment
ans =
int32
2
There is no impact to how you set the value of the Alignment property.
However, scripts that check the data type of the property in addition to its value might
require modification to accommodate this change.
Simulink.SignalRTWInfo and Simulink.ParamRTWInfo objects no longer supported
Errors
Support for Simulink.SignalRTWInfo and Simulink.ParamRTWInfo
objects has been removed. MAT, MDL, and SLX files that store these objects no longer load.
To specify information needed to generate code for signal, state, or parameter data, use a
Simulink.CoderInfo object. To convert these
deprecated objects stored in a MAT, MDL, or SLX file to Simulink.CoderInfo
objects, resave the file in a release earlier than R2025a.
MAT files with data objects incompatible with previous versions of MATLAB
Behavior change
Starting in R2025a, MAT files that contain data objects such as Simulink.Parameter, Simulink.Signal, Simulink.LookupTable, or Simulink.Breakpoint objects are incompatible with previous versions of
MATLAB. For example, when you export a model to a version of MATLAB earlier than R2025a, if the model loads a MAT file from a
PostLoad callback, the MAT file fails to load in the earlier version.
To access the data in earlier versions of MATLAB, move the data to a MATLAB program file (.m) or data dictionary before export.
Changes to matlab.io.saveVariablesToScript and
Simulink.saveVars behavior
Behavior change
Previously, when you used matlab.io.saveVariablesToScript or
Simulink.saveVars to save workspace
variables, if a data object in the workspace contained a large array, the
function saved the entire object to a MAT file. Starting in R2025a, these
functions save only the numeric values of these objects to a MAT file and
write the rest of the data object to a MATLAB program file (.m). For the
matlab.io.saveVariablesToScript function, a
large array is an array with more elements than the number of elements
specified by the MaximumArraySize argument which, by
default, is 1000.
Using the Simulink.saveVars function is not recommended. Use
matlab.io.saveVariablesToScript
instead.
Specify port, signal, and execution attributes more easily for bus element ports and function ports
You can now specify port, signal, and execution attributes more easily with In Bus Element, Out Bus Element, Function Element Call, and Function Element blocks.
To toggle the display of port, signal, and execution attributes, click
. Port, signal, and execution attributes now
appear on tabs. The
button replaces the buttons that appear when you
pause on a bus, signal, or message name in a previous release.
When you specify execution attributes, a parenthetical now appears next to the
name of the corresponding bus, signal, or message. To display the specified
attributes, click
.
To edit the port name, double-click the name of the top-level bus, signal, or message. Alternatively, on the Port tab, specify Port name.
To change block colors, click
and select a standard color or specify a custom
color.
To create a Simulink.Bus object using the Type
Editor, on the Signal tab, click
.
Dims mode is now named Dimensions mode.
For more information, see In Bus Element, Out Bus Element, Function Element Call, or Function Element.
Specify Bus Creator block parameter values more easily and intuitively
The Bus Creator block now provides more intuitive and streamlined editing for block parameter values.
Specify block parameter values in the Property Inspector. When you specify block parameter values in the Property Inspector or Block Parameters dialog box, the changes now apply immediately.
To reorder the input elements, select one or more top-level elements from the Inputs list. Then, drag the elements to a new position.
Filtering supports regular expressions by default.
When you find the source blocks of input elements, the source blocks are now selected instead of highlighted. The Property Inspector displays the parameters of the source block that has focus.
To specify the source of output bus element names, the Element names menu replaces the Use names from inputs instead of from bus object check box.
For more information and a complete description of the changes, see Bus Creator.
Relational Operator and Logical Operator blocks support Inherit: Inherit via back propagation
The Relational Operator and Logical Operator blocks now support the option Inherit: Inherit
via back propagation for the Output data type
parameter.
Signal Editor block updates
Starting in R2025a, the Signal Editor block has these updates:
The Interpolate data parameter is now enabled by default.
Note
If the Signal Editor block is the source for a new Simulink Test™ or Simulink Design Verifier™ test harness model, the Interpolate data parameter is off by default.
The new Use properties from lets you specify the source of signal property definitions.
Blockset Designer updates
The Blockset Designer has these changes:
Blocks may now have library block names that differ from their implementation block name. The implementation block name is the name assigned to the block when it is originally authored.
To change the library block name in the top-library and sublibraries, in the Blockset Browser pane, right-click the block and select Rename.

For more information, see Change Library Block Name.
To change the implementation block name, click the Edit button of the Block Path parameter.

For more information, see Change Implementation Block Name.
Lookup Table blocks update
The Remove protection against out-of-range input in generated code
parameter has been replaced by the Assume input is within range
parameter for these blocks. The programmatic name, RemoveProtectionInput,
remains the same.
For the Interpolation Using Prelookup block, the
Remove protection against out-of-range index in generated code
parameter has been replaced by Assume index is within range. The
programmatic name, RemoveProtectionIndex, remains the same.
For simulation, these changes now cause out-of-range input or index values to always be flagged. This change lets you identify modeling issues before code generation. In releases prior to R2025a, out-of-range input or index values were clipped. If the input was below the lower boundary, the input value was changed to be the same as the lower boundary of the valid input range.
Code generation behavior does not change.
Change parameter value by selecting from list of options on Radio Button block
Starting in R2025a, you can model radio buttons using the Radio Button block from the Customizable Blocks library. The Radio Button block controls the value of the connected parameter. For information about how to connect the block, see Connect Dashboard Blocks to Simulink Model.
Selecting a radio button option assigns the value associated with that option to the connected parameter. To select an option on the Radio Button block during simulation, click the icon or text of the option you want to select. To select an option when the simulation is not running, click the Radio Button block to select the block, and then click the option icon or text.
You can customize the Radio Button block from the Customizable Blocks library using the Design tab in the Property Inspector.
Change the value that each option assigns to the connected parameter.
Change the text and the font color of the option labels.
Add or remove options.
Change the icon that represents a selected or cleared radio button.
Change on which side of the label the icons are located.
Add a border around the list of options and a title above the list.
Change the border thickness and the color of the border and title.
Add a background image to the block, or choose a background color.
Add a foreground image to the block.
![]()
Change parameter value by selecting from options in drop-down list of Combo Box block
Starting in R2025a, you can model combo boxes using the Combo Box block from the Customizable Blocks library. The Combo Box block controls the value of the connected parameter. For information about how to connect the block, see Connect Dashboard Blocks to Simulink Model.
Selecting an option from the combo box drop-down list assigns the value associated with that option to the connected parameter. To select an option during simulation, click the Combo Box block to expand the drop-down list, and then select the option. To select an option when the simulation is not running, click the Combo Box block to select the block, click the block again to expand the drop-down list, and then select the option.
You can customize the Combo Box block from the Customizable Blocks library using the Design tab in the Property Inspector.
Change the value that each option assigns to the connected parameter.
Change the text and the font color of the option labels.
Add or remove options.
Change the chevron icon of the drop-down list.
Change the number of visible entries in the drop-down list.
Change the background color and border color of the drop-down list.
Change the colors of the background, border, and font of the highlighted entry in the drop-down list.
Add a background image to the block, or choose a background color.
Add a foreground image to the block.
![]()
Push callback button with one click instead of two when simulation is not running
When a Simulink block from the Dashboard or Customizable Blocks library is active, you can interact with the gadget the block represents. For example, you can push a button or flip a switch. When a block is inactive, you can only interact with the block. For example, you can move or resize the block. To interact with the gadget when a block is inactive, you can temporarily activate the block by clicking the block. When you deselect the block, the block becomes inactive again.
By default, all blocks from the Dashboard and Customizable Blocks libraries are active during simulation. Blocks promoted to a dashboard panel are also active when the panel is open in its own window or docked and unlocked. In previous releases, the blocks are inactive in all other cases. Specifically, when the simulation is not running, a Callback Button block in the model canvas or in a panel that is neither open in its own window nor docked and unlocked is inactive. To push the button, you must click the block twice: once to temporarily activate the block, and once to push the button.
Starting in R2025a, Callback Button blocks for which at least one of the callbacks triggered by pushing the button has a nonempty value are always active, regardless of whether the simulation is running. This change means when the simulation is not running, you can push callback buttons with a single click. When the simulation is not running, you can move and resize active Callback Button blocks.
There is also a new keyboard shortcut for interacting with active blocks. Clicking an active Callback Button block or an active block from the Dashboard or Customizable Blocks library that is connected to a parameter or variable value both selects the block and interacts with the gadget the block represents. For example, clicking an unselected active connected Push Button block both selects the block and pushes the button. You can now select the block without interacting with the gadget by pressing Shift and then clicking the block. Similarly, you can open the Block Parameters dialog box by pressing Shift and then double-clicking the block.
Updated dashboard panel deployment process generates smaller app files
The process for deploying dashboard panels as standalone or web apps is changing in R2025a. The updated deployment process generates apps with smaller file sizes. For information about the updated process for deploying apps, see Deploy Dashboard Panel as App.
Limit data logged by Record block
Limit the size of data logged by the Record block by specifying signal values to log. You can specify signal values to log using two new parameters:
Decimation — Log every nth signal value.
Limit data points to last — Log only the last n signal values.
Export data to a Parquet file using the Record block
Use the Record block to export data from scalar and multidimensional
signals, as well as data from buses or arrays of buses, to a Parquet file. The
Record block logs and can export real and complex data of any built-in
data type, as well as enumerations, strings, and fixed-point data. The Record
block can also export messages to a Parquet file as double values. When
exporting to a Parquet file, you can configure shared or individual time columns, set row
groups by height or size, and choose the compression used when saving the file.
View a table of data in the Playback block
Before R2025a, data added to the Playback block could only be visualized in a sparklines visualization. Now, you can view plotted signals in a table. The Playback block table supports real or complex signals with fixed or variable dimensions, enumerations, strings, discrete and continuous signals, messages, multidimensional signals expanded to channels, buses, and arrays of buses.

MATLAB System block supports unbounded variable-size signals
Starting in R2025a, the MATLAB System block supports unbounded variable-size signals.
The block supports unbounded variable-size signals at the input and output ports.
The block can access data stores containing unbounded variable-size signals
using the matlab.System object associated
with the block. For more information, see How to Use Data Store Memory Blocks for the MATLAB System Block.
C Function block: Support for Simulink strings
Starting in R2025a, C Function block input and output ports support Simulink strings. To specify Simulink strings for a port, set the corresponding symbol data type to string in the Ports and Parameter Symbols table. For more information, see Port and Parameter Symbols.
C Function block: Code coverage support for local custom code
Starting in R2025a, the C Function block supports code coverage for custom code that is locally specified in the block dialog box. To locally specify your C/C++ code in the C Function block dialog box, use the Simulation Custom Code and the Code Generation Custom Code in the Simulation section and the Code generation section, respectively. For more information, see Configure custom code settings.
If block: New expression table and expression editor
Starting in R2025a, the If block has a new Expressions table with action buttons that allow you to manually add, remove, and move expressions. In the new table, each row represents an else if expression, making it easy to visualize and parse. Previously, the block had a single Elseif expression field containing comma-separated list of all the else if expressions.
Additionally, the new Expression editor box allows you to edit complex expressions.

If block: Include if-else statements in generated code
Starting in R2025a, the new Provide if-else statements in generated code parameter allows you to include if-else statements in the code generated from an If block. Selecting this parameter prevents inclusion of switch-case statement in the generated code and enhances readability of the code.
Neighborhood Processing Subsystem, Array Processing Subsystem, and Pixel Processing Subsystem blocks support MATLAB Function blocks
Starting in R2025a, you can use MATLAB Function blocks inside Neighborhood Processing Subsystem, Array Processing Subsystem, and Pixel Processing Subsystem blocks. Use MATLAB Function blocks to implement neighborhood processing algorithms, such as those that perform image processing tasks, in MATLAB code.
Use cross-port parameter constraints to establish relationships among ports and parameters within the same masked block
Create constraints among the ports and parameters within the same masked block. For
example, you can constrain the data type of an input port signal and an edit parameter.
Create constraints using the predefined rules such as Same Data
Type, Same Dimensions, and
Same Complexity and then associate the ports and
parameters to the constraints.
To create cross-port parameter constraints, in the Mask Editor, click Constraints, specify the name of the constraint, set the rules, parameter conditions, and associate the ports and parameters appropriately. For more information Validate Port Signals and Parameter Values Using Cross Port Parameter Constraints.
Create a structure of mask parameters to simplify tuning
Starting in R2025a, you can create structure of mask parameters and associate it with the masked block to simplify parameter tuning and data management.
To create a structure containing parameter names and their current values for any masked
block, use get_param with the argument
ParameterValuesStruct.
<structName> = get_param(<blockName or handle>,"ParameterValuesStruct")
To associate a structure that contains parameter names and values with a masked block,
use set_param with the
ParameterValueStructname-value argument.
set_param(<blockName or handle>,"ParameterValuesStruct","<structName>")
For parameters which do not support variable names as values like popup, radio button
and checkbox, set the parameter value in the struct and then use the
set_param function.
For multiple masked blocks within a model, create nested structure. To create and
associate a nested struct as per the model hierarchy, use the
set_param with the model name as an input argument.
set_param(modelName,"ParameterValuesStruct","<structName>")
Nontunable parameters of a child block can no longer refer to a tunable mask parameter of its parent
Starting in R2025a, the value of a nontunable parameter of a child block cannot refer to a tunable mask parameter of its parent. An error is displayed when you attempt to edit the value of the child block's parameter.
Search and filter mask parameters and their prompts in Mask Editor
Use the Parameters and Dialog pane of the Mask Editor to
search and filter parameters, dialog controls, and containers based on name or prompt.
Refine the search results based on mask parameter properties, such as
Type, Evaluate, Tunable,
and Visible.

Enhancements to mask enumeration parameters referring to external enumerations
Starting in R2025a, mask enumeration parameters referring to external enumeration class
support enumeration classes derived from int32, int16, int8, uint32, uint16, and uint8
as well apart from the existing enumeration classes. You can also reference enumeration
classes derived from Simulink.IntEnumType and
Simulink.Mask.EnumerationBase inside namespaces as the options
of a popup parameter.
Mask parameter callback execution is optimized
Starting in R2025a, Simulink optimizes the execution of mask parameter callbacks. It no longer re-executes a parameter callback if it has already run once when opening the mask dialog box. Previously, all mask parameter callbacks were executed each time you opened the dialog box.
Enhancements to Graphical Icon Editor
Graphical Icon Editor has these enhancements:
Integrated view of visibility conditions on a block icon— Access a unified view of all visibility conditions on a block icon in the Condition Editor window. In the Dynamization section of the toolstrip, click Edit Condition to view and edit the visibility condition. Additionally, search for specific conditions using the search box.

Rename a masked block icon— Use the Save As option on the Graphical Icon Editor toolstrip to rename a masked block icon.
View an enhanced preview of masked block icon— The preview feature is enhanced with improved grid lines, annotations, and other options to visualize icons against different Simulink canvas colors.
View all icon parts in a block icon—
Click
in the Element
Browser for an integrated view of all the parts in
a block icon. To edit a specific part, double-click the part.

Add hidden properties of a System object class file to the Mask Editor
Use the Base Class Property parameter in a System object™ mask to add hidden properties of a system object class to the Mask Editor. The property continues to be hidden in the mask dialog.
Table properties in system object class translates to custom table in Mask Editor
Starting in R2025a, table properties in system object class translates to custom table parameter in system block mask.
String values now supported as model arguments
Simulink.Parameter objects and MATLAB variables with string values in a model workspace can now be configured as
model arguments.
Enhancements for deploying and simulating FMU with constant periodic clocks
In R2025a, FMU blocks with constant periodic clocks are enhanced for simulation and performance. You can now:
Generate code for models containing the FMU.
Simulate models with the FMU in rapid accelerator mode for faster simulation speeds.
Include the FMU in a model reference and simulate it in accelerator mode, allowing for greater modularity and faster simulation performance.
Create hierarchical model designs by generating nested FMUs.
Generate code for FMU from its source code
Starting in R2025a, you can generate code for an FMU generated from Simulink using its packaged source code. Source-code based code generation is the default setting for nested FMUs, ERT target, GRT target, and rapid accelerator simulation mode. Before R2025a, the generated code for an FMU had a dependency on its platform-specific compiled binary file.
Note
This feature applies only to FMUs generated from Simulink from R2025a onwards. It is not supported for FMUs generated from Simulink prior to R2025a or for FMUs generated by other tools.
To generate code based on the source code of your FMU, in the Code
Generation tab of the FMU block dialog, set the Call
FMU function using option as source code.

String to Enum block generates more efficient code
The String to Enum block now generates more efficient code for enumerations by generating a shared function for each enumeration type. Prior to R2025a, this block generated inlined code for enumerations.
Import and simulate FMUs with windows 32-bit DLLs
You can now import and simulate FMUs containing windows 32-bit DLLs in Simulink using the FMU block. To do so, in the Simulation tab of the FMU block dialog, set the Simulate FMU using: parameter as x86-windows.

Generate test harness models for blocks in Python Importer
Starting in R2025a, you can select whether to generate test harness models for blocks in Python Importer. Use the test harness model to run tests and validate the block that imports your specified python code.
To enable generation of test harness, in the Python Importer wizard's Create Simulink Library page, select Automatically create test harness for all imported functions option.
Note
This feature requires the Simulink Test license.

Extract Bits block update
The Extract Bits block Number of bits and Bit indices parameters now accept only scalar positive integers.
Import FMU with calculated parameters
The FMU block now supports import of calculated parameters. The values of these parameters are derived from other parameters or are determined at run-time. You can see the calculated parameters of an FMU in the Parameters tab of the FMU block dialog.
Functionality being removed or changed
Access to Simulink Scope through MATLAB Graphics API has been removed
The underlying graphics of the Simulink Scope block have changed. You cannot access or modify the Simulink Scope block through the MATLAB Graphics API.
To display the scope data in a MATLAB Graphics window, use the Print to Figure functionality in the Scope tab of the Scope block toolstrip.
Floating Signal Selection has been removed
The floating signal selection feature (
) in the Floating Scope block has been removed. To connect signals to your floating
scope, use the existing signal selector (
) instead. For more details, see Add Floating Scope Block to Model and Connect Signals.
Ability to dock Scopes to MATLAB desktop has been removed
The ability to dock the Simulink Scope and Floating Scope and Scope Viewer to the MATLAB desktop has been removed. Use the new scope container instead. For more information, see Scope Window Management.
If you have a model created in R2024b or a previous release with four or more open scopes, and you open that model in R2025a, the opened scopes automatically dock in the scope container window.
Lookup Table blocks Remove protection against out-of-range input in generated code parameter replaced
The Remove protection against out-of-range input in generated code
parameter has been replaced with Assume input is within range for
these blocks. The programmatic name, RemoveProtectionInput, remains the
same.
For the Interpolation Using Prelookup, the
Remove protection against out-of-range index in generated code
parameter has been replaced by Assume index is within range The
programmatic name, RemoveProtectionIndex, remains the same.
If the model simulation generates errors because the out-of-range input or index is fed to a block with Assume input is within range or Assume index is within range selected, the code generated by the model has undefined behavior when the same out-of-range input or index occurs during execution of the generated code. This undefined behavior might cause severe issues. For safety critical applications, do not select Remove protection against out-of-range input in generated code or Remove protection against out-of-range index in generated code.
In releases prior to R2025a, the Remove protection against out-of-range input
in generated code and Remove protection against out-of-range
index in generated code only removed the code checks for out-of-range values
for generated code. The block did not generate an error if an out-of-range input or index
was fed to the block during simulation. As a workaround. if you have a model from a release
prior to R2025a, cannot migrate to a later release, and want to detect the out-of-range
issue, set the Diagnostic for out-of-range input parameter to
Error. The next time you run the model, the block generates
an error when the input or index is out-of-range.
Function-Call Generator block no longer behaves as masked block
Behavior change
Starting in R2025a, the Function-Call Generator block no longer behaves as masked, linked block. The block now behaves as a built-in block and executes faster during simulation.
When you update from another release to the R2025a, you must fix any Function-Call Generator block whose link to the Simulink library is broken. Otherwise, the block will not be updated, and it will continue to behave as a masked block in the updated model. The masked behavior of the block will be removed in a future release.
Bus Creator block Require names of inputs to match names above and Rename selected signal parameters have been removed
The Require names of inputs to match names above and
Rename selected signal parameters of the Bus
Creator block have been removed. To specify the required names, use a
Simulink.Bus object instead.
Setting Inputs to a comma-separated list of element names is not
recommended.
For more information, see Bus Creator.
Change in syntax to preserve tunability in generated code for parameters that are modified or created in mask initialization code
Behavior change in future release
The syntax to create or update mask workspace variables using mask initialization code to preserve tunability of parameters in generated code is changed.
Previously, you were using
maskWorkspace.set("newParam","myFile.update","maskParam1", "maskParam2",constVal)Starting in R2025a, use
maskWorkspace.set ("newParam", @()myFile.update(maskParam1, maskParam2,constVal))Neighborhood Processing Subsystem block no longer supports blocks that have state
Still runs
Starting in R2025a, the Neighborhood Processing Subsystem cannot contain blocks that have state.
Arduino Hardware: Support for Arduino UNO R4 Minima, UNO R4 Wi-Fi, and Nano RP2040 Connect boards in Simulink Online
You can now use Simulink Support Package for Arduino® Hardware in Simulink Online™ to create, run, and deploy Simulink models on these Arduino boards through your web browser:
Arduino UNO R4 Wi-Fi®
Arduino UNO R4 Minima
Arduino Nano RP2040 Connect
For more information, see Get Started with Simulink Online for Arduino.
Arduino Hardware: Deploy code on Arduino boards over Wi-Fi using OTA technology
Starting in R2025a, use Simulink Support Package for Arduino Hardware to deploy code for a Simulink model over a Wi-Fi network on these boards:
Arduino MKR Wi-Fi 1010
Arduino MKR 1000
Arduino Nano 33 IoT
Arduino Uno R4 Wi-Fi
Over the Air (OTA) technology enables deploying code over a Wi-Fi network, eliminates the need for USB cables or any other wired connections, and provides greater flexibility in code deployment workflows. For more information, see Implement Over-the-Air Programming with Arduino and Set Up and Upload Arduino Simulink Models Over the Air.
Arduino Hardware: Connected IO and PIL mode and Input Capture block support for Teensy boards
Starting in R2025a, Simulink Support Package for Arduino Hardware includes the following features for Teensy 4.0 and 4.1 boards that are compatible with Arduino:
Deploy a Simulink model in the connected IO and processor-in-the-loop (PIL) mode. For more information, see Communicate with Hardware Using Connected IO and Code Verification and Validation with PIL on Arduino Hardware.
Use an Input Capture block in a Simulink model to precisely measure the time period and duty cycle of a signal and deploy the model on your Teensy board.
Arduino Hardware: Support for Arduino Uno R4 Minima hardware board
Starting in R2025a, you can deploy Simulink models containing the following blocks from Simulink Support Package for Arduino Hardware to the Arduino Uno R4 Minima board. You can select this board in the Hardware board drop-down list in the Configuration Parameters dialog box.
Simulink Support Package for Arduino Hardware includes the following features for the Arduino Uno R4 board:
Deploy a Simulink model in the connected IO and processor-in-the-loop (PIL) mode. For more information, see Communicate with Hardware Using Connected IO and Code Verification and Validation with PIL on Arduino Hardware.
Deploy a Simulink a model containing the Continuous Servo Write, Standard Servo Read, or Standard Servo Write blocks.
Specify an operating frequency for a PWM signal in the PWM block by using the
Specify option under the
Frequency parameter. In earlier releases, the block
provided only the Default option under the
Frequency parameter and you could not set the
frequency of a PWM signal.
For more information, see Supported Arduino Hardware.
Arduino Hardware: Enable pin multipurposing on RP2040 and PICO boards
Starting in R2025a, use any of the general-purpose IO pins of RP2040 and PICO boards compatible with Arduino to configure the SPI, UART, and I2C protocols. In earlier releases, you could configure these protocols using only the peripheral pins designated for the protocols. For more information, see Serial port properties, I2C properties, and SPI properties.
Arduino Hardware: Enable PIL support for RP2040 Connect boards
Starting in R2025a, you can deploy a Simulink model in the processor-in-the-loop (PIL) mode on your Arduino Nano RP2040 Connect board. For more information, see Code Verification and Validation with PIL on Arduino Hardware.
Arduino Hardware: Connected IO, PIL, servo blocks, and PWM support for Arduino Uno R4 Wi-Fi Boards
Starting in R2025a, Simulink Support Package for Arduino Hardware includes the following features for the Arduino Uno R4 Wi-Fi board:
Deploy a Simulink model in the connected IO and processor-in-the-loop (PIL) mode. For more information, see Communicate with Hardware Using Connected IO and Code Verification and Validation with PIL on Arduino Hardware.
Deploy a Simulink a model containing the Continuous Servo Write, Standard Servo Read, or Standard Servo Write blocks.
Specify an operating frequency for a PWM signal in the PWM block by using the
Specify option under the
Frequency parameter. In earlier releases, the block
provided only the Default option under the
Frequency parameter and you could not set the
frequency of a PWM signal.
Functionality being removed or changed
Raspberry Pi Hardware: Network CAN capabilities for Raspberry Pi
Behavior change
Starting in R2025a, you can enhance the controller area network (CAN) capabilities of a Raspberry Pi® board using Raspberry Pi Blockset. You can configure a maximum of five CAN interfaces with properties such as CAN interface type, CAN bus speed, and transmit queue buffer size in the Configuration Parameters dialog box. In the earlier releases, you could configure these parameters in the block mask of the CAN Receive and CAN Transmit blocks. For more information on configuring the CAN interfaces, see CAN properties.
Raspberry Pi Hardware: Raspberry Pi – Robot Operating System (ROS) option will be
removed from Configuration Parameters
Behavior change
The Raspberry Pi – Robot Operating System (ROS) option in the
Configuration Parameters > Hardware Implementation >
Hardware board will be removed in a future release. This
removal was last announced in R2020b. For Simulink models that use Raspberry Pi – Robot Operating System (ROS) as the default
target, change the target to Robot Operating System
(ROS).
Raspberry Pi Hardware: Support for Buster Raspberry Pi Linux operating system will be removed
Still runs
Support for the 32-bit Buster Raspberry Pi Linux® operating system will be removed in a future release for Raspberry Pi Blockset in the Simulink desktop and Simulink Online environment. You will no longer be able to use the support package to communicate with a Raspberry Pi board that runs a Buster operating system. You must upgrade the Raspberry Pi Linux operating system to 32-bit or 64-bit Bullseye or Bookworm in the Simulink desktop environment and 32-bit Bullseye or Bookworm in the Simulink Online environment. For more information on how to set up an operating system on your Raspberry Pi hardware, see Set Up Operating System on Raspberry Pi Board.
Code generation for more toolbox functions
In R2025a, you can generate code for many additional toolbox functions and objects. For a list of all functions and objects that are supported for code generation, see:
These are links to the release notes of some toolboxes that added code generation support in R2025a:
See C Code Generation: Generate code from additional functions using MATLAB Coder.
Modified modeling guidelines
Starting in R2025a, the modeling conditions C and D have been removed from the High-Integrity System Modeling guideline hisl_0008: Usage of For Iterator Blocks. It no longer supports the following control display configuration parameters:
Set Next i (iteration variable) externally
Show iteration variable
Updated guideline about code generation for data stores and states using persistent data
Starting in R2025a, the code generation modeling guideline cgsl_0411: Access nonvolatile memory is updated to contain information about using a measurement service interface for persistent data.
Enhancements to the S-Function Builder block editor
Starting in R2025a, the S-Function Builder block editor has these updates:
You can now save your editor session using the Save button.
Use the Set Output option to specify the desired output directory for the generated S-function files.
The Settings pane is divided into general settings and settings specific to S-Function.
