필터 지우기
필터 지우기

I have a structure which includes some structures within itself. I want to get all the values in the inner structure and create a single column vector. How can I do that?

조회 수: 1 (최근 30일)
for i = 1:120
A = [];
for j = 1:
A(j) = data(i).I;
end
end
I do not know how to define "j". "I" is a structure within "data". "data" includes 120 "I"s and each "I" includes between 720 to 760 values. I want all the "I" values in a vector.

답변 (1개)

dpb
dpb 2022년 10월 8일
V=vertcat(data(:).I);

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by