Main Content

addData

Import pulse sequence experimental data

Description

addData(psObj,Time,Voltage,Current) adds the pulse sequence experimental data to the Battery.PulseSequence object. The Time, Voltage, and Current input arrays must have equal lengths. addData computes the charge and state of charge (SOC), using the assumption that the experimental test range is 0% to 100% SOC.

example

Examples

collapse all

This example shows how to add data to a Battery.PulseSequence object.

Create a pulse sequence object.

psObj = Battery.PulseSequence;
disp(psObj)

Load data from a file.

FileName = 'Synthetic_LiPo_PulseDischarge.mat';
[time,voltage,current] = Battery.loadDataFromMatFile(FileName);

Add the data to the pulse sequence.

addData(psObj,time,voltage,current);

Input Arguments

collapse all

Battery.PulseSequence object for the pulse sequence that you want to analyze.

m-by-1 array of time data, in s.

Data Types: double

m-by-1 array of voltage data, in V.

Data Types: double

m-by-1 array of current data, in A.

Data Types: double

Version History

Introduced in R2016b