# Function: structarray2table

## CALL:

T = structarray2table(S, VERBOSE, SHOWWARNING, flds)

## DESCRIPTION:

Convert array of structures to stucture of arrays (table)

## INPUT:

S | any |
    array of structures (structarray)
        +----M1(1)
        +----M2(1)
        +----M3(1)
VERBOSE | any |
    <boolean> (default false). Print progress on screen.
SHOWWARNING | any |
          <boolean> (default true). Display warnings.
    flds :
         only select these fields (defaults to fieldnames(S))

## OUTPUT:

T | any |
    structure of arrays (tablestruct)
        +----M1(N,1)
        +----M2(N,1)
        +----M3(N,1)
REVISIONS | any |
    20200611 checked for use with R2016b strings.