Retreiving property value of each object in array

I have an array of user-defined objects with a property "name". I want to display all the names in a listbox. I am trying to extract them using
listOfNames=[handles.library.name]
%"library" is the object array%
but this returns one string of all the names concatenated. How can I extract the strings separately?

 Respuesta aceptada

James Tursa
James Tursa el 4 de Abr. de 2017
Maybe use a cell array instead?
listOfNames = {handles.library.name};

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Abr. de 2017

Respondida:

el 4 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by