Main Content

toStruct

Convert to structure

Description

example

irStruct = toStruct(irSig) converts the irSignature object irSig to a structure irStruct. The field names of the returned structure are the same as the property names of the irSignature object.

Examples

collapse all

Create an irSignature object.

irSig = irSignature
irSig = 
  irSignature with properties:

      Pattern: [2x2 double]
      Azimuth: [-180 180]
    Elevation: [2x1 double]
    Frequency: [0 1.0000e+20]

Convert the signature to a structure.

irStruct = toStruct(irSig)
irStruct = struct with fields:
      Pattern: [2x2 double]
      Azimuth: [-180 180]
    Elevation: [2x1 double]
    Frequency: [0 1.0000e+20]

Input Arguments

collapse all

IR signature, specified as an irSignature object.

Output Arguments

collapse all

IR structure, returned as a structure.

Introduced in R2020b