How do you delete and space characters in Matlab Virtual Keyboard ?
3 views (last 30 days)
We are having trouble deleting and spacing characters in our Matlab virtual keyboard. When we want to press delete, the word delete appears in the keyboard instead of actually deleting characters. When we want to space out the characters in Matlab, the word space appears in the matlab code instead of actually spacing out the characters.
Uday Pradhan on 19 Mar 2021
Edited: Uday Pradhan on 19 Mar 2021
Just a naive try at what you asked, i hope it helps!
%Called when letter pressed
%Add letter to string
str = get(hEdit,'string');
str(end+1) = ' ';
str(end) = '';
str = horzcat(str,letter);
%NOTE: Obviously, you'll need to add features here such as