nwdata class
Data object that stores the measured excitation and node signals of a networked system, and their properties. These signals may be obtained from a subset of the nodes and/or excitation signals of the full network.
Construction
data = nwdata(r,w)creates a network data object with excitation datarand node dataw.data = nwdata(r,w,Ts)creates a network data object with defined time step.data = nwdata(iddata)creates a network data object from aniddataobject (from the System Identification toolbox). Input data, names and units are mapped to excitation properties and output data, names and units are mapped to node properties. Other properties that exist in bothnwdataandiddataare mapped to the new object.data = nwdata(path)creates a network data object from file, previously stored using thesavemethod.data = nwdata(__,Name=Value)creates a network data object with additional properties set according to the provided values. All (non-dependent) properties can be set in this way.
Properties
Name
character array string Name of data set. Empty by default.
SystemName
character array string Name of the system. Empty by default.
ExperimentName
character array string Name of the experiment. Empty by default.
ExcitationData
double array Excitation signals. Cannot be modified after construction
ExcitationNames
string array Physical names of excitation signals. Array of empty strings by default.
ExcitationLabelNrs
integer array Network label numbers of excitation signals. In identification, these are matched to the network label numbers of a
LabelledAdjStructobject. By default, these labels are[1, 2, ...]. The labels must be unique.ExcitationLabels
string array Network labels of excitation signals. Based on the
ExcitationLabelNrsproperty.ExcitationUnits
string array Units of excitation signals. Array of empty strings by default.
NodeData
double array Node signals. Cannot be modified after construction.
NodeNames
string array Physical names of node signals. Array of empty strings by default.
NodeLabelNrs
integer array Network label numbers of node signals. In identification, these are matched to the network label numbers of a
LabelledAdjStructobject. By default, these labels are[1, 2, ...]. The labels must be unique.NodeLabels
string array Network labels of node signals. Based on the
NodeLabelNrsproperty.NodeUnits
string array Units of node signals. Array of empty strings by default.
Domain
Domainsenumeration objectDomain of the data set. Can be either 'Time' or 'Frequency'. 'Time' by default.
Ts
positive scalar Sample time. Defaults to 1.
N
positive scalar Number of samples, determined from
NodeData.r
double array Shorthand for
ExcitationDataw
double array Shorthand for
NodeData
Methods
save
Save properties of the object.
Syntax
save(data,path)stores astructcontaining the properties of the data object at the location specified bypath.
Input arguments
data
nwdataobjectpath
character array string Path to folder in which the data should be stored.
get
Displays the properties of the object.
Syntax
get(data)displays astructcontaining the properties of thenwdataobject.
Input arguments
data
nwdataobject
iddata
Convert to
iddataobject.Syntax
iddata(data)converts thenwdataobject to aiddataobject with analogous properties.
Input arguments
Network data
nwdataobject
Output arguments
Input-output data
iddataobject
disp
Display information about the data.
Syntax
dataprints information about the data to the output.disp(data)
Input arguments
data
nwdataobject
wIndexFromLabelNrs
Get indices of nodes based on node label numbers.
Syntax
wIndexFromLabelNrs(data,labelNrs)retrieves node indices from label numbers.
Input arguments
data
nwdataobjectlabelNrs
integer array Label numbers
rIndexFromLabelNrs
Get indices of excitations based on excitation label numbers.
Syntax
rIndexFromLabelNrs(data,labelNrs)retrieves excitation indices from label numbers.
Input arguments
data
nwdataobjectlabelNrs
integer array Label numbers