How to concatenate multiple structure results vertically?

后端 未结 1 656
野趣味
野趣味 2021-01-23 12:28

If I have structure array and access it with matrix index, I get multiple anses.

>> a=struct([])

a = 

0x0 struct array with no fields.

>> a(1).f1         


        
1条回答
  •  孤城傲影
    2021-01-23 13:22

    use vertcat

    vertcat( a(:).f1 )
    

    0 讨论(0)
提交回复
热议问题