MATLAB Answers

Create part of Handles variable

3 views (last 30 days)
Richard Natho
Richard Natho on 26 Nov 2014
Commented: Richard Natho on 27 Nov 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

  0 Comments

Sign in to comment.

Accepted Answer

Doug Hull
Doug Hull on 26 Nov 2014

  1 Comment

Richard Natho
Richard Natho on 27 Nov 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?

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by