From: us on 28 Jun 2010 03:24 "andrea " <flavioantonello(a)alice.it> wrote in message <i09i3u$dv5$1(a)fred.mathworks.com>... > now I've changed the values and suddenly the slinder is displayed. Anyways, I get another error if I try to move the slider: > > > ??? Reference to non-existent field 'xa'. > > Error in ==> diadi at 3 > [mecc.xb,mecc.yb,mecc.phi1b,mecc.phi2b,mecc.phi3b]=diadeRRR(mecc.xa,mecc.ya,-19.06,-72.55,mecc.abs(i),15.63,1); > > Error in ==> guimem>slider1_Callback at 107 > handles=diadi(handles); > > Error in ==> gui_mainfcn at 96 > feval(varargin{:}); > > Error in ==> guimem at 42 > gui_mainfcn(gui_State, varargin{:}); > > ??? Error while evaluating uicontrol Callback well... what else can CSSMers say other than: the error message is crystal clear... us
From: andrea on 28 Jun 2010 10:30 Well, I may sound strange but I'm still wondering how can I solve this problem. Do I have to create a field? And how do I have to do? All the variables are actually defined, so what's needed more?
From: ImageAnalyst on 28 Jun 2010 11:14 On Jun 28, 10:30 am, "andrea " <flavioantone...(a)alice.it> wrote: > Well, I may sound strange but I'm still wondering how can I solve this problem. Do I have to create a field? And how do I have to do? All the variables are actually defined, so what's needed more? ------------------------------------------------------ No, mecc.xa is NOT defined, according to the error message. Set a breakpoint there, and examine mecc and you will see that it does not have a "xa" member.
From: andrea on 28 Jun 2010 15:01 Yeah, I finally got it. At least just the first part. Now the gear is plotted, the slider too. But another problem came out. when moving the slider, I get this: ??? Reference to non-existent field 'edit3'. Error in ==> guimem>slider1_Callback at 108 set(handles.edit3,'String',num2str(z2)) Error in ==> gui_mainfcn at 96 feval(varargin{:}); Error in ==> guimem at 42 gui_mainfcn(gui_State, varargin{:}); ??? Error while evaluating uicontrol Callback Uh, the part of the GUI for the slider is: function slider1_Callback(hObject, eventdata, handles) % hObject handle to slider1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'Value') returns position of slider % get(hObject,'Min') and get(hObject,'Max') to determine range of slider z2=get(hObject,'Value'); set(handles.edit3,'String',num2str(z2)) %(mecc.z2-62)/((80-62)/0.5); % aggiorna la structure handles.mecc.z2=z2; handles=diadi(handles); % calcolo diadi handles=punti(handles,0); % ottenimento punti cla grid on cilindro(handles); % disegno membri sfere(handles); % plot %axes(handles.axes1) mecc=dati; handles.mecc=mecc; % salva i cambiamenti di handles guidata(hObject, handles);
From: ImageAnalyst on 28 Jun 2010 16:48 Well obviously you do not have a edit box with the tag "edit3".
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: HOW TO BECOME A MUSLIM Next: Please help me understand this |