Create part of Handles variable

1 visualización (últimos 30 días)
Richard Natho
Richard Natho el 26 de Nov. de 2014
Comentada: Richard Natho el 27 de Nov. de 2014
Hi,
I've create a GUI with lots of Text fields called Cell1...Cell60. Now I would like to write Data to these fields using: set(handles.CellXX, 'String',DataXX)
I've tried genvarname to change the XX to the current field I would like to change but the dot is not created correctly. Does anyone have an idea how to get build a working handles.XXX reference in the code?
Thanks
Richard

Respuesta aceptada

Doug Hull
Doug Hull el 26 de Nov. de 2014
  1 comentario
Richard Natho
Richard Natho el 27 de Nov. de 2014
Thanks. Worked like a charm.
Just one more question. I understand that you shouldn't do this to create hundreds of variables but where is the problem if you use it to call variables?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Variables en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by