plot
Class: tireModel
Description
This method requires Extended Tire Features for Vehicle Dynamics Blockset.
plot(
plots tire model response based on
the model specified by obj
)obj
.
plot(___,
plots tire
model response with additional options specified by one or more
Name=Value
)Name=Value
arguments.
Input Arguments
Tire model, specified as a tireModel
object or an array of
tireModel
objects.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Example: plot(model,Direction="kappa",Magnitude=0.5,Fz=[2000;3000;4000;5000;6000],IP=220,gamma=0)
The available name-value arguments depend on whether you plot tire model response
defining sweep direction or using a tireData
object.
Parent container or axes in which to draw the plot, specified as an axes, figure, panel, or
tab object. If you do not specify Parent
, a
new figure is created.
Note
If you specify Data
without specifying
DataVariableNames
, the parent
must be a valid tab container if you are
generating a tabbed plot.
Data channels to plot, specified as a vector. DataVariableNames
must be a data channel property of a tireData
object.
If one variable name is passed, the variable is set as the y-axis channel, and the x-coordinate is defined as
1:length(Y)
.If two variable names are passed, the order is [x-axis variable, y-axis variable].
If three variables names are passed, the order is [x-axis variable, y-axis variable, z-axis variable].
Note
If you specify the argument Direction
without specifying
the argument DataVariableNames
, the x-axis
is set to the direction you define, and the y-axis is auto set to
the appropriate data channel for that sweep direction. If you specify the argument
Data
without specifying the argument
DataVariableNames
, an autoplot function executes and
generates the most relevant plots.
Example: DataVariableNames=["kappa";"Fx"]
Dependencies
To specify this option, you must also specify one of these combinations of options:
Direction
andMagnitude
Data
Data Types: string
Color by value to differentiate how the tire model response lines are plotted.
Note
If the ColorBy
value is a data channel and
Data
is specified, the mean value for each
tireData
object is used to differentiate the color groups.
Example: ColorBy="Fz"
Dependencies
To specify this option, you must also specify one of these combinations of options:
Data Types: string
Plot Tire Model Response Defining Sweep Direction
Sweep direction, specified as one of these values:
"alpha"
"gamma"
"kappa"
"Fz"
Example: Direction="alpha"
Dependencies
To specify this option, do not specify Data
. If you specify
Data
, the resulting plot ignores the inputs to
Direction
.
Data Types: string
Sweep magnitude specified as a scalar or 2-by-1 vector.
Note
If you do not specify Magnitude
with
Direction
, the sweep magnitude is assigned the values from
the minimum and maximum sweep direction of the model.
Example: Magnitude=[-0.25;0.35]
Dependencies
To specify this option, you must also specify Direction
. If
you specify Data
, the resulting plot ignores the inputs to
Magnitude
.
Normal force, specified as a scalar or column vector, in N. If you specify a scalar, the magnitude of the sweep is set to the +/- of the input value. The magnitude range cannot be zero.
Example: Fz=[2000;3000;4000;5000;6000]
Dependencies
To specify this option, you must also specify Direction
. If
you specify Data
, the resulting plot ignores the inputs to
Fz
.
Data Types: double
Plot Tire Model Response Using tireData
Object
Tire measurement data used as input conditions for the tire model, specified as a
tireData
object or an array of tireData
objects. The tireData
measured data and the tireModel
simulated data are overlaid on the same plot.
Example: Data=td(1:8)
Option to specify fit type, specified as one of these values:
"Fx Pure"
"Fy Pure"
"Fx Combined"
"Fy Combined"
"Mz Pure"
"Mz Combined"
"Mx"
"My"
Example: FitType="Fx Pure"
Data Types: string
Version History
Introduced in R2023b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)