[gui] how to load data?

6 visualizaciones (últimos 30 días)
Hojae Ahn
Hojae Ahn el 11 de Jun. de 2016
Comentada: Image Analyst el 11 de Jun. de 2016
i want load data from workspace
i think that
set(handles.e_hole_1_min,'string','gui_H_size')
but do not working...

Respuesta aceptada

Image Analyst
Image Analyst el 11 de Jun. de 2016
Try using num2str to convert the number to a string:
set(handles.e_hole_1_min, 'String', num2str(gui_H_size));
or with recent versions:
handles.e_hole_1_min.String = num2str(gui_H_size);
If that doesn't work, actually even if it does, read this.
  2 comentarios
Hojae Ahn
Hojae Ahn el 11 de Jun. de 2016
Editada: Hojae Ahn el 11 de Jun. de 2016
do now work this code... @(hObject,eventdata)gui_2pin2hole_v2('b_load_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating uicontrol Callback
Image Analyst
Image Analyst el 11 de Jun. de 2016
You'll have to give more information and context that that. I don't know what you're asking.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre String Parsing 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