Skip to main content

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 data r and node data w.
  • data = nwdata(r,w,Ts)  creates a network data object with defined time step.
  • data = nwdata(iddata)  creates a network data object from an iddata object (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 both nwdata and iddata are mapped to the new object.
  • data = nwdata(path)  creates a network data object from file, previously stored using the save method.
  • 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 arraystring

    Name of data set. Empty by default.

  • SystemName

    character arraystring

    Name of the system. Empty by default.

  • ExperimentName

    character arraystring

    Name of the experiment. Empty by default.

  • ExcitationData

    [N,nr][N,n_{r}] double array

    Excitation signals. Cannot be modified after construction

  • ExcitationNames

    [1,nr][1,n_{r}] string array

    Physical names of excitation signals. Array of empty strings by default.

  • ExcitationLabelNrs

    [1,nr][1,n_{r}] integer array

    Network label numbers of excitation signals. In identification, these are matched to the network label numbers of a LabelledAdjStruct object. By default, these labels are [1, 2, ...]. The labels must be unique.

  • ExcitationLabels

    [1,nr][1,n_{r}] string array

    Network labels of excitation signals. Based on the ExcitationLabelNrs property.

  • ExcitationUnits

    [1,nr][1,n_{r}] string array

    Units of excitation signals. Array of empty strings by default.

  • NodeData

    [N,nw][N,n_{w}] double array

    Node signals. Cannot be modified after construction.

  • NodeNames

    [1,nw][1,n_{w}] string array

    Physical names of node signals. Array of empty strings by default.

  • NodeLabelNrs

    [1,nw][1,n_{w}] integer array

    Network label numbers of node signals. In identification, these are matched to the network label numbers of a LabelledAdjStruct object. By default, these labels are [1, 2, ...]. The labels must be unique.

  • NodeLabels

    [1,nw][1,n_{w}] string array

    Network labels of node signals. Based on the NodeLabelNrs property.

  • NodeUnits

    [1,nw][1,n_{w}] string array

    Units of node signals. Array of empty strings by default.

  • Domain

    Domains enumeration object

    Domain 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

    [N,nr][N,n_{r}] double array

    Shorthand for ExcitationData

  • w

    [N,nw][N,n_{w}] double array

    Shorthand for NodeData

Methods

  • save

    Save properties of the object.

    Syntax

    • save(data,path)  stores a struct containing the properties of the data object at the location specified by path.

    Input arguments

    • data

      nwdata object
    • path

      character arraystring

      Path to folder in which the data should be stored.

  • get

    Displays the properties of the object.

    Syntax

    • get(data)  displays a struct containing the properties of the nwdata object.

    Input arguments

    • data

      nwdata object
  • iddata

    Convert to iddata object.

    Syntax

    • iddata(data)  converts the nwdata object to a iddata object with analogous properties.

    Input arguments

    • Network data

      nwdata object

    Output arguments

    • Input-output data

      iddata object
  • disp

    Display information about the data.

    Syntax

    • data  prints information about the data to the output.
    • disp(data) 

    Input arguments

    • data

      nwdata object
  • wIndexFromLabelNrs

    Get indices of nodes based on node label numbers.

    Syntax

    • wIndexFromLabelNrs(data,labelNrs)  retrieves node indices from label numbers.

    Input arguments

    • data

      nwdata object
    • labelNrs

      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

      nwdata object
    • labelNrs

      integer array

      Label numbers