Borrar filtros
Borrar filtros

Simple GUI question and basic equations.

3 visualizaciones (últimos 30 días)
Luke
Luke el 20 de Abr. de 2013
Hi everyone,
I want to make a GUI that will perform a basic equation when the user inputs values for the variables. I have the basic layout but the code to perform this action confuses me somewhat. How would I, say, have two textboxes that will multiply the two values inputted together?
Thanks for your time.

Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Abr. de 2013
get() the 'Value' of each of the text boxes. The Value will be a string. Convert each of the strings to numeric form (e.g., str2double). Perform the arithmetic operation. Do something appropriate with the result.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by