Simple program with a formula
Show older comments
Hello everyone! Could anyone help me with a program using GUI: I have this simple formula x+y=z. I have an "edit text" for each x,y and z and I want the user to be able to write a number in "x" and a number in "y" and the result to come up in the "edit text" for z. Any help with the code?? I know it's simple, but if I learn how to do that I could go onto harder stuff. Thank you very much! Daniel
Accepted Answer
More Answers (1)
Walter Roberson
on 11 Jul 2012
hint:
x = str2double( get(TheFirstEditHandle, 'String') );
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!