主要内容

export

R2026b

Export K and C analysis results for storage or reuse

Since R2026b

Description

param = export(knc) exports the fitted K and C parameter set from the service object for storage or reuse in another session. The exported object can be passed to the KnCParameters name-value argument of kncSuspension to recreate a service with previously fitted parameters.

example

param = export(knc,Name=Value) exports K and C parameters 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.

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.export(Descriptions = "myCar baseline test") assigns descriptive metadata to the K and C service object, identifying these results as being from a baseline test of the "myCar" front and rear suspension.

Description for the exported parameter set, specified as a string scalar.

Data Types: string

Output Arguments

expand all

Exported K and Cparameter set, returned as a vdynsuspension.KnCResults.KnCBlkParam object containing all generated suspension parameters. Use this object to initialize a new K and Cservice with previously fitted parameters by passing it to the KnCParameters argument of kncSuspension.

Examples

expand all

After fitting K and Cdata, export the parameter set for later reuse.

knc = kncSuspension(Description="Ioniq 5 K and CData");
knc.import("bounceData.mat", TestType="bounce", FrontAntiRollBar=true, RearAntiRollBar=true);
knc.fit([1,0], [1,1], "Independent front and rear", "AWD");
savedParams = knc.export()

Export parameters from one session and reuse them in a new session.

% Export from current session
savedParams = knc.export(Descriptions="Ioniq5 baseline parameters");

% Reuse in a new session
knc2 = kncSuspension(KnCParameters=savedParams);
knc2.set("myModel/Independent Suspension - K and C")

Version History

Introduced in R2026b