// This GUI file is generated by guibuilder version 3.0 ////////// f=figure('figure_position',[400,50],'figure_size',[648,570],'auto_resize','on','background',[33],'figure_name','Graphic window number %d'); ////////// delmenu(f.figure_id,gettext('File')) delmenu(f.figure_id,gettext('?')) delmenu(f.figure_id,gettext('Tools')) toolbar(f.figure_id,'off') handles.dummy = 0; handles.h_rb1=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.103125,0.69375,0.1984375,0.1041667],'Relief','default','SliderStep',[0.01,0.1],'String','first button','Style','radiobutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','h_rb1','Callback','rb_selected(1)',"Groupname", "wave_shape") handles.h_rb2=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1046875,0.4916667,0.1953125,0.1083333],'Relief','default','SliderStep',[0.01,0.1],'String','second button','Style','radiobutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','h_rb2','Callback','test_linspace()',"Groupname", "wave_shape") ////////// // Callbacks are defined as below. Please do not delete the comments as it will be used in coming version ////////// function rb_selected(type) if (type == 1) then disp('button 1'); else disp('button 2'); end test_linspace(); endfunction function test_linspace() delay=linspace(0, 1, 10); disp(delay); endfunction handles.h_rb1.value=1;