Create part of Handles variable

조회 수: 3 (최근 30일)
Richard Natho
Richard Natho 2014년 11월 26일
댓글: Richard Natho 2014년 11월 27일
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

채택된 답변

Doug Hull
Doug Hull 2014년 11월 26일
  댓글 수: 1
Richard Natho
Richard Natho 2014년 11월 27일
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?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by