Main Content

toStruct

Convert to structure

Since R2020b

Description

example

tsStruct = toStruct(tsSig) converts the tsSignature object tsSig to a structure tsStruct. The field names of the returned structure are the same as the property names of the tsSignature object.

Examples

collapse all

Create a tsSignature object.

tsSig = tsSignature
tsSig = 
  tsSignature with properties:

      Pattern: [2x2 double]
      Azimuth: [-180 180]
    Elevation: [2x1 double]
    Frequency: [0 100000000]

Convert the signature to a structure.

tsStruct = toStruct(tsSig)
tsStruct = struct with fields:
      Pattern: [2x2 double]
      Azimuth: [-180 180]
    Elevation: [2x1 double]
    Frequency: [0 100000000]

Input Arguments

collapse all

TS signature, specified as an tsSignature object.

Output Arguments

collapse all

TS structure, returned as a structure.

Version History

Introduced in R2020b