Main Content

Plot Tire Model Response with Imported Tire Data for Visual Inspection

Use the tireModel and tireData classes and supporting methods to import tire data to plot the response of a tire model or calculate and plot a tire response.

First, create a tireModel object using the tireModel.builtin method. This example uses the built-in "Mid-size passenger car 235/45R18" model. Next, import the tire data from Tyre Data Exchange Format (TYDEX) v1.3 files. Then, specify arguments in the plot method to compare the tire model response versus the imported tire data. Finally, use the compute method calculate a tire response and plot the original tire data versus the calculated response to inspect the difference.

This example requires the Extended Tire Features for Vehicle Dynamics Blockset™ support package. See Install Support Package.

Note that all built-in models are Magic Formula 6.2 tire type models.

Create Tire Model from Built-In Model

Create the tireModel object tm from the built-in model "Mid-size passenger car 235/45R18".

tm = tireModel.builtin("Mid-size passenger car 235/45R18");

Display the result using disp.

Import Tire Data

Build a string array of the TYDEX filenames.

tirepath = pwd;
tydexdir = dir(fullfile(tirepath,"data_tydex_files","*.tdx"));
tydexstr = join([{tydexdir.folder}',{tydexdir.name}'],filesep);

Import the data and create an array of tireData objects, td.

td = tireData(tydexstr);

Use the mean function to preprocess the Fz data channel to remove noise and variation.

td = mean(td, "Fz");

Autoplot Tire Data

Specifying the input argument Data, plot the array of tire data objects overlaid with the tire model. Generic plots automatically generate providing a fast way to observe how a model behaves compared to the tire data for a variety of sweep directions and data channels.

plot(tm,"Data",td);

Figure contains 80 axes objects and another object of type uitabgroup. Axes object 1 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 2 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 3 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 4 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 5 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 6 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 7 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 8 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 9 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 10 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 11 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 12 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 13 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 14 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 15 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 16 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 17 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 18 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 19 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 20 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 21 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 22 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 23 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 24 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 25 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 26 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 27 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 28 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 29 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 30 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 31 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 32 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 33 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 34 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 35 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 36 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 37 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 38 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 39 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 40 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 41 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 42 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 43 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 44 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 45 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 46 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 47 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 48 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 49 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 50 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 51 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 52 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 53 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 54 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 55 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 56 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 57 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5170, 6460. Axes object 58 with xlabel Longitudinal slip [], ylabel Lateral force [N] contains an object of type text. Axes object 59 with xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains an object of type text. Axes object 60 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5170, 6460. Axes object 61 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4280, 5170, 6460. Axes object 62 with xlabel Longitudinal slip [], ylabel Lateral force [N] contains an object of type text. Axes object 63 with xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains an object of type text. Axes object 64 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4280, 5170, 6460. Axes object 65 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4310, 5170, 6460. Axes object 66 with xlabel Longitudinal slip [], ylabel Lateral force [N] contains an object of type text. Axes object 67 with xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains an object of type text. Axes object 68 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4310, 5170, 6460. Axes object 69 with title Lateral force [N] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 70 with title Self-aligning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 71 with title Overturning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 72 with title Lateral force [N] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4270, 5160, 6460. Axes object 73 with title Self-aligning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4270, 5160, 6460. Axes object 74 with title Overturning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4270, 5160, 6460. Axes object 75 with title Lateral force [N] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6450. Axes object 76 with title Self-aligning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6450. Axes object 77 with title Overturning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6450. Axes object 78 with title Friction Plot Inclination angle [rad] = 0.105, xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4310, 5180, 6480. Axes object 79 with title Friction Plot Inclination angle [rad] = 0, xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6490. Axes object 80 with title Friction Plot Inclination angle [rad] = -0.105, xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6490.

Plot Imported Data Overlaid with Simulated Model Response

Specifying the input arguments Data, DataVariableNames, and ColorBy, plot the longitudinal force versus longitudinal slip of the tire model overlaid with the tire data. Use the normal force to assign legend colors and values.

plot(tm,"Data",td(1:8),"DataVariableNames",["kappa","Fx"],"ColorBy","Fz");

Figure contains an axes object. The axes object with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500.

Simulate Tire Model Response

Specify the input argument Model to simulate the model response at the plotted data conditions.

plot(td,"Model",tm);

Figure contains 80 axes objects and another object of type uitabgroup. Axes object 1 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 2 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 3 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 4 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6500. Axes object 5 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 6 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 7 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 8 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5180, 6480. Axes object 9 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 10 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 11 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 12 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 13 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 14 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 15 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 16 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 17 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 18 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 19 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 20 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5180, 6480. Axes object 21 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 22 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 23 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 24 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 25 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 26 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 27 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 28 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4310, 5160, 6470. Axes object 29 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 30 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 31 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 32 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6500. Axes object 33 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 34 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 35 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 36 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4340, 5200, 6510. Axes object 37 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 38 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 39 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 40 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 5210, 6500. Axes object 41 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 42 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 43 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 44 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 3 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2190, 5220. Axes object 45 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 46 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 47 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 48 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4320, 5170, 6480. Axes object 49 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 50 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 51 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 52 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5190, 6490. Axes object 53 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 54 with title Lateral force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 55 with title Self-aligning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 56 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2170, 4350, 5210, 6510. Axes object 57 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5170, 6460. Axes object 58 with xlabel Longitudinal slip [], ylabel Lateral force [N] contains an object of type text. Axes object 59 with xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains an object of type text. Axes object 60 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5170, 6460. Axes object 61 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4280, 5170, 6460. Axes object 62 with xlabel Longitudinal slip [], ylabel Lateral force [N] contains an object of type text. Axes object 63 with xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains an object of type text. Axes object 64 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4280, 5170, 6460. Axes object 65 with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4310, 5170, 6460. Axes object 66 with xlabel Longitudinal slip [], ylabel Lateral force [N] contains an object of type text. Axes object 67 with xlabel Longitudinal slip [], ylabel Self-aligning moment [Nm] contains an object of type text. Axes object 68 with title Overturning moment [Nm] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4310, 5170, 6460. Axes object 69 with title Lateral force [N] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 70 with title Self-aligning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 71 with title Overturning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6460. Axes object 72 with title Lateral force [N] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4270, 5160, 6460. Axes object 73 with title Self-aligning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4270, 5160, 6460. Axes object 74 with title Overturning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4270, 5160, 6460. Axes object 75 with title Lateral force [N] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Lateral force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6450. Axes object 76 with title Self-aligning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Self-aligning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6450. Axes object 77 with title Overturning moment [Nm] vs Slip angle [rad], xlabel Slip angle [rad], ylabel Overturning moment [Nm] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4300, 5160, 6450. Axes object 78 with title Friction Plot Inclination angle [rad] = 0.105, xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2140, 4310, 5180, 6480. Axes object 79 with title Friction Plot Inclination angle [rad] = 0, xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2150, 4320, 5190, 6490. Axes object 80 with title Friction Plot Inclination angle [rad] = -0.105, xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, 2160, 4330, 5200, 6490.

Compare Tire Data and Tire Model Response Defining Additional Operating Conditions

Specifying the input arguments DataVariableNames, ColorBy, FilterBy, FilterByValues, and Model plot the longitudinal force versus lateral force of the tire data overlaid with the tire model response. Use the slip angle to assign colors and legend values to the plot. Filter by the combined data and inclination angle values of -0.2 and 0.2.

plot(td,"DataVariableNames",["Fy","Fx"],"ColorBy","alpha", ...
    "FilterBy",["TestMethod","gamma"], ...
    "FilterByValues",{"Combined",[-0.02 0.02]},"Model",tm);

Figure contains an axes object. The axes object with title Longitudinal force [N] vs Lateral force [N], xlabel Lateral force [N], ylabel Longitudinal force [N] contains 5 objects of type line. One or more of the lines displays its values using only markers These objects represent Mid-size passenger car 235/45R18, -0.14, -0.087, -0.035, 0.035.

Calculate Tire Response Using Tire Model Parameters

Use the compute method to calculate the tire response from the tire model tm using the data in td. A tireData object, td_response, is returned with the simulated data.

Note that if a data channel is empty when executing the model solver, the data channel will be estimated or assigned to the model nominal condition.

td_response = compute(tm,td(1));

Plot Tire Data

Use the plot method to visually inspect the difference between the original data and simulated data.

td(1).Comments = "Original Data";
td_response.Comments = "Simulated Data";
plot([td(1),td_response],"DataVariableName",["kappa","Fx"], ...
    "ColorBy","Comments","MarkerSize",15)

Figure contains an axes object. The axes object with title Longitudinal force [N] vs Longitudinal slip [], xlabel Longitudinal slip [], ylabel Longitudinal force [N] contains 2 objects of type line. One or more of the lines displays its values using only markers These objects represent Original Data, Simulated Data.

See Also

|