Setting static text box's string
이전 댓글 표시
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...
채택된 답변
추가 답변 (3개)
Jan
2011년 7월 14일
1 개 추천
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
2011년 7월 14일
0 개 추천
Are you really sure that the error is caused by that line of code? I'm not :)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!