필터 지우기
필터 지우기

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