function txt = createTextField(parent,pos,string) % textfieldcolor = [0.9 0.9 0.0]; textfieldcolor = 'w'; txt = uicontrol(parent,'Style','edit','Units','normalized','String',string,'Position',pos); set(txt,'BackgroundColor',textfieldcolor); end