主要内容

diff

R2026b

Class: tireModel

Create table of tire parameters that differ between two tire models

Since R2023b

Description

Add-On Required: This feature requires the Extended Tire Features for Vehicle Dynamics Blockset add-on.

T = diff(obj) returns a table, T, containing rows for parameters that differ between two models specified by obj.

Note

You can only diff between models of the same type.

example

Input Arguments

expand all

Tire models, specified as a 2-by-1 vector of tireModel objects.

Output Arguments

expand all

Table of tire model parameters, returned as a table object.

Examples

expand all

Identify parameter differences between two tire models of the same type.

Create a Magic Formula 6.2 tire model and make a copy with modified parameters.

tm = tireModel.new("MF62");
tm2 = tm;
tm2.PCY1 = 1.2;
tm2.PCX1 = 1.5;
tm2.PDX1 = 0.9;

Compare the two models. The table shows only parameters with different values, making it easy to identify exactly what changed.

T = diff([tm;tm2])
T =

  3×3 table

    Property      Model1        Model2
    ________    __________    __________

    {'PCX1'}    {[1.5790]}    {[1.5000]}
    {'PDX1'}    {[1.0422]}    {[0.9000]}
    {'PCY1'}    {[1.3380]}    {[1.2000]}

Version History

Introduced in R2023b

See Also