Main Content

vrnode/interpolate

(To be removed) Interpolate field value

Since R2023a

vrnode/interpolate will be removed in a future release. For more information, see Version History.

Syntax

interpolate(Node,FieldName,NewValue)
interpolate(Node,FieldName, NewValue,Shape)
interpolate(Node,FieldName,NewValue,Shape, Duration)
interpolate(Node,FieldName,NewValue,Shape,Duration,FPS)

Arguments

Node

Node with field, can be a vector.

FieldName

String array or cell array of character vectors.

NewValue

String array or cell array of character vectors.

Shape

Shape of the interpolation curve:

  • 'sweep' – Smoothly increasing and decreasing interpolation speed

  • 'linear' – constant interpolation speed

  • 'hill' – Double-sweep shape with return to the original value

  • 'triangle' – Double linear shape with return to the original value

Duration

Interpolation duration, in seconds. Default is 1.

FPS

Number of interpolation points per one second of duration time.

Description

interpolate(Node,FieldName,NewValue) interpolates any writable numerical field specified by the FieldName from its current value to NewValue. If Node is a vector, then FieldName and NewValue must be cell arrays of the same size. The software simultaneously interpolates multiple node fields.

interpolate(Node,FieldName,NewValue,Shape) specifies the shape of the interpolation curve.

interpolate(Node,FieldName,NewValue,Shape,Duration) specifies the interpolation duration.

interpolate(Node,FieldName,NewValue,Shape,Duration,FPS) specifies the number of interpolation points per second.

Version History

Introduced in R2023a

collapse all

R2023b: To be removed

The vrnode/interpolate will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.