Simple program with a formula
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 11 Jul. 2012
hint:
x = str2double( get(TheFirstEditHandle, 'String') );
Kategorien
Mehr zu Text Data Preparation 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!