Main Content

updatePlot

Update UAV flight log plot functions

Since R2020b

Description

updatePlot(mapper,plotName,plotFunc,requiredSignals) adds or updates the plot with name plotName stored in mapper. Specify the plot function as a predefined plot name or function handle and the required signals for the plot. For a list of preconfigured signals and plots, see Predefined Signals and Predefined Plots.

Input Arguments

collapse all

Flight log signal mapping object, specified as a flightLogSignalMapping object.

Name of plot, specified as a string scalar or character vector. This name is either added or updated in the AvailablePlots property of mapper.

Example: "IMU"

Data Types: char | string

Function for generating plot, specified as a function handle. The function is of the form:

f = plotFunc(signal1, signal2, ...)
The function takes input signals as structures with two fields, "Names" and "Values", and generates a plot output as a figure handle using those signals.

Example: @(acc, gyro, mag)plotIMU(acc, gyro, mag)

Data Types: function_handle

List of required signal names, specified as a string array or cell array of character vectors.

Example: ["LocalNED.X" "LocalNED.Y" "LocalNED.Z"]

Data Types: char | string

More About

collapse all

Version History

Introduced in R2020b