主要内容

plot

R2026b

Plot K and C test data with fitted curves

Since R2026b

Description

plot(knc,PlotTests) plots raw K and C test data points with fitted curves and gradient lines for the tests specified by PlotTests.

example

plot(knc,PlotTests,Name=Value) plots K and C data with additional options specified by one or more name-value arguments.

example

Input Arguments

expand all

K and C service object, specified as a vdynsuspension.KnCService handle-class object created using kncSuspension.

Tests to plot, specified as "all", a string scalar, or a string array. Use hierarchical dot-notation addressing to specify test scope:

  • "all" — Plot all available tests.

  • "bounce" — Plot all bounce sub-tests.

  • "bounce.BumpSteer.FL" — Plot a specific wheel position.

  • ["bounce", "roll"] — Plot multiple test types.

Available plot categories include "bounce", "roll", "steering", "lateralComplianceOpposed", "aligningTorqueOpposed", "longitudinalCompliance_braking", and "longitudinalCompliance_recession".

Data Types: string

Name-Value Arguments

expand all

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: kncSuspension.plot("all", Docked=true) will generate all data lots and dock them within the MATLAB desktop.Docked=true

Dock figures in the MATLAB IDE, specified as true or false. When true, plot figures are docked within the MATLAB desktop. The default value is false.

Examples

expand all

After fitting K and C data, plot all available test results.

knc.plot("all")

Plot bounce test results with figures docked in the MATLAB IDE.

knc.plot("bounce", Docked=true)

Plot bump steer results for the front-left wheel only.

knc.plot("bounce.BumpSteer.FL")

Version History

Introduced in R2026b