Hi I have a 1x100 struct array called data. In this array I need all the elements bidPrice.
data.bidPrice gives me one element how can I easily get all of the bid prices in a normal array?

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 2월 20일

0 개 추천

out = [data.bidPrice]
or
out = cat(1,data.bidPrice)
ets.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by