himanshu kashyap

himanshu kashyap

  • NA
  • 33
  • 38.9k

using list box in matlab gui

Sep 3 2012 2:11 AM
i m doing a program  using list box and text box, using below coding

a=get(handles.listbox1,'value');
if(a==1)
set(handles.text1,'string','hello');
else if (a==2)
set(handles.text1,'string','hi');



but after writing this codes in callback function , receive one error (illegal use of reserved keyword"function").