how to display the result that i get from pushing a button in an edit box in matlab gui?

조회 수: 1 (최근 30일)
sir i want to create a gui for watermarking text documents. the watermarking system reads text file word by word then selects the frequent occurring word as a keyword,the initial letters of preceding and the next words to the keyword are then used to generate a watermark pattern, now i want to make gui for that system. the gui should contain a read button to read the text file a keyword button to select the keyword from the document and display it in a text box and a watermark button to generate e watermark pattern and show it in an edit box. i am confused that how can i assign the output that i get from pressing button e.g if i push keyword button i get "the" as keyword i want this keyword to be displayed in an edit box or static text box as a result of pushing keyword button. how can i do this? i hope u can understand it now
  댓글 수: 2
Jan
Jan 2013년 7월 20일
Sorry, I still do not understand the problem. You want to show the string "the" in an edit field, this should work:
set(handles.edit1, 'String', 'the');
Does this help already?

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by