MATLAB: Struct array

array

Hi I have a 1×100 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?

Best Answer

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