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...
No comments:
Post a Comment