Borrar filtros
Borrar filtros

I am creating a GUI to run a code and want to import some input parameters from excel through GUI and transfer the same to the main .m file

2 visualizaciones (últimos 30 días)
GUI
  2 comentarios
vandana
vandana el 10 de Jun. de 2015
Editada: Walter Roberson el 10 de Jun. de 2015
I want to pass input parameters from GUI to .m file
for exp.
I am taking bed_height as input in GUI and passing it to the .m file as bed_height1.
taking input in GUI as
bed_Height=str2num(get(hObject,'String'));
if(isempty(bed_Height))
set(hObject,'String','0')
guidata(hObject,handles);
data = getappdata(gcbf, 'metricdata');
data.bed_Height = bed_Height;
setappdata(gcbf, 'metricdata', data);
end
and passing it to .m file as
bed_height = data.bed_Height;
The problem is code is not giving any error but keeps running. how to pass inputs from GUI to .m file

Iniciar sesión para comentar.

Respuesta aceptada

vandana
vandana el 17 de Jun. de 2015
This problem is resolved
Thanks

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by