Main Content

toStruct

Convert to structure

Since R2020b

Description

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.

example

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.

Version History

Introduced in R2020b