Struct array

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?

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 20 de Feb. de 2012

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Feb. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by