Setting static text box's string
Ältere Kommentare anzeigen
Hi everybody
I create a gui and a after static text box which is named frameText.I want to change it's string with this code .
set(handles.frameText , 'String' , 'abcdefgh' );
But an error occurs.
??? Subscript indices must either be real positive integers or logicals.
What is the reason for this? Thanks for help...
Akzeptierte Antwort
Weitere Antworten (3)
Jan
am 14 Jul. 2011
1 Stimme
You have created a variable call "set". Then the shown line does not call the built-in command SET anymore, but tries to use the string parameters as indices.
Paulo Silva
am 14 Jul. 2011
0 Stimmen
Are you really sure that the error is caused by that line of code? I'm not :)
Onur Öçalan
am 14 Jul. 2011
0 Stimmen
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!