Borrar filtros
Borrar filtros

passes functions in GUI

2 visualizaciones (últimos 30 días)
marwa marwan
marwa marwan el 11 de Nov. de 2015
Respondida: Walter Roberson el 11 de Nov. de 2015
i have a GUI with 2 edit text and pushbutton, when i press the button , the value that i entered in edit1 must be passes to a program , make some calculation and then retern the value and put it in edit2. th problem that face me is the program have a function. so how i will deal with that?please help me
the code for pushbutton
v1=str2num(get(handles.edit1,'String'));
p; % the program that i will deal with it
set(handles.edit2,'String',num2str(g));
the code for p.m program
function g=main(v1)
clc;
g=v1;
g=g+10;

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Nov. de 2015
g = p(v1); % the program that i will deal with it

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by