Info

此问题已关闭。 请重新打开它进行编辑或回答。

Put in a array some element of a structure

1 次查看(过去 30 天)
abc abc
abc abc 2018-2-14
关闭: MATLAB Answer Bot 2021-8-20
Hello, I have a structure with 6 fields like this :
a b c d e f
'1' 3 4 8 9 6
'4' 5 6 2 1 3
'7' 5 2 1 6 8
'6' 2 1 5 8 4
I called data this structure. For instance if I write data.a I get :
ans =
'1'
ans =
'4'
ans =
'7'
ans =
'6'
In my case I just would like to create an array to put data.a inside I mean like this for instance if I call F the array :
F(1) = 1
F(2) = 4
F(3) = 7
F(4) = 6
How can I do this ?
Thank you a lot !

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by