code for a delete button in matlab gui
Ältere Kommentare anzeigen
hello :) im doing a scientificcalculator GUI in Matlab, how can I code for a delete button for my calculator? its like deleting(just like backspace) characters from a static text box?
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (2)
Matt J
am 30 Sep. 2012
0 Stimmen
In the callback for the delete button you would
(1) Read the string from the text box.
(2) Truncate the string like in the example below
(3) Write the truncated string back into the text box
>> str='myString'
str =
myString
>> str(end)='' %truncate
str =
myStrin
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!
