フィルターのクリア

Registering letters in the plot (GUIDE)

5 ビュー (過去 30 日間)
Yuda Leon Reyna
Yuda Leon Reyna 2018 年 2 月 5 日
回答済み: vijaya lakshmi 2018 年 3 月 1 日
Hello everyone,
I am trying to register a letter/word through a pushbutton and listbox in (GUI), whenever needed. That is why I wrote a code for a special pushbutton. The problem is that the letter disappears whenever I register another letter in an other position. In the new position the old and new letter occur at the same time. For an example: I register the letter "a" at the parameter k =1 then at that level "a" accurs in the plot. Then I click next and the letter disappears. Then I register the lette "c" at the parameter k = 5, the letters "a" and "c" occur at the same time and on another.
My question is: How can I make the letter that I registered in that position stay and when I register another letter in another position both of the letters remain in their own position?
Here is my code:
switch Bewegungsart
case 1
text(handles.axes2,handles.Parameter.k, 0,'a')
hold on
case 2
text(handles.axes2,handles.Parameter.k, 0,'b')
hold on
case 3
text(handles.axes2,handles.Parameter.k, 0, 'c')
hold on
case 4
text(handles.axes2,handles.Parameter.k ,0, 'd')
hold on
case 5
text(handles.axes2,handles.Parameter.k ,0,'e')
hold off
otherwise
end

回答 (1 件)

vijaya lakshmi
vijaya lakshmi 2018 年 3 月 1 日
Hi Yuda, In order to better assist you can you send the code for a special pushbutton.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by