Main Content

struct

Class: tireModel

Create structure from tire model

Since R2023b

Syntax

S = struct(obj)
S = struct(obj, GroupFields=true)

Description

This method requires Extended Tire Features for Vehicle Dynamics Blockset.

S = struct(obj) creates a structure, S, with a field for each tire model parameter and tire model value in the tire model specified by obj.

S = struct(obj, GroupFields=true) creates a structure, S, and groups tireModel object fields when you specify the optional name-value argument GroupFields as true.

Input Arguments

expand all

Tire model, specified as a tireModel object or an array of tireModel objects.

Option to group tireModel object fields, specified as false or true.

Example: GroupFields=true

Data Types: logical

Output Arguments

expand all

Structure, returned as a structure object or structure array.

Version History

Introduced in R2023b

expand all

See Also