Monday, November 7, 2011
MATLAB GUI Edit Text and Static Text Objects Example
%Assume there is text_edit object which is called editext1.
%Assume there is a static_text object which is called statext1.
%Get the string in the text_edit object and convert it into a number n
n=str2num(get(handles.editext1,'string'));
%Do some thing with n
y=n*n;
%Convert y back into a string stry
stry=num2str(y);
%Set the 'string' field of the static_text object the string stry.
set(handles.statext1,'string',stry);
Subscribe to:
Post Comments (Atom)
Mounting USB drives in Windows Subsystem for Linux
Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...
-
I. Five different ways to answer a question II. Use SOLO strategies to explain our thinking and reasoning III. SOLO Taxono...
-
Learning levels 1, 2, and 3 Learning levels 4, 5, and 6 References http://www.cccs.edu/Docs/Foundation/SUN/QUESTIONS%20FOR%20TH...
No comments:
Post a Comment