Contenido principal

VoltageVerificationChart

R2026b

Chart for visualizing and comparing measured and simulated voltage data over time

Since R2025a

Description

Use VoltageVerificationChart to create a chart for visualizing and comparing the measured and simulated voltage data over time inside a voltage plot.

Creation

Description

Note

To quickly create a VoltageVerificationChart object, use the plot method of the ECM object. By using this function, you avoid importing the namespace, using the full class name, or dealing only with name-value arguments when creating the object.

To use this object, at the MATLAB® Command Window, run this command at least once each MATLAB session:

import simscape.battery.parameters.ui.*; 
All properties are exposed as name-value arguments in this object.

chart = VoltageVerificationChart(MeasuredVoltage=measVolt,SimulatedVoltage=simVolt) creates a VoltageVerificationChart object that visualizes the measured and simulated voltage data over time specified in the MeasuredVoltage and SimulatedVoltage arguments.

chart = VoltageVerificationChart(___,PropertyName=Value) creates a VoltageVerificationChart object and sets Properties using one or more name-value arguments.

Input Arguments

expand all

Measured voltage to plot, specified as a timetable (since R2026b) or as a cell array of timetables. Each timetable must have a variable named "Voltage".

Simulated voltage to plot, specified as a timetable (since R2026b) or as a cell array of timetables. Each timetable must have a variable named "Voltage".

Output Arguments

expand all

Chart for visualizing the measured and simulated voltage in a voltage plot, returned as a VoltageVerificationChart object.

Properties

expand all

Visibility of the simulation voltage, specified as "off", "on", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

Visibility of the chart axes, specified as "off", "on", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

Since R2026b

Visibility of chart axes toolbar, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

  • "on" — Display the toolbar.

  • "off" — Do not display the toolbar.

This object is a subclass of the ChartContainer class. For a list of the ChartContainer properties, see matlab.graphics.chartcontainer.ChartContainer.

Version History

Introduced in R2025a

expand all