Note that there are some explanatory texts on larger screens.

plurals
  1. POunwanted data saved after clearing the graph.
    primarykey
    data
    text
    <p>I am using a matlab gui to perform some signal manipulation with phase lock loops and I cannot seem to figure out in my code where the data is being saved even though I believe to have removed it. </p> <p>Here are the files <a href="http://sdrv.ms/ZO5hXD" rel="nofollow">http://sdrv.ms/ZO5hXD</a></p> <p>Below is the setting function. </p> <pre><code>function axes1_ButtonDownFcn(hObject, eventdata, handles) % hObject handle to axes1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) position = get(gca,'CurrentPoint'); x = position(1); y = position(3); %handles.poles=handles.sVar; %handles.zeros=handles.sVar; %guidata(hObject,handles); slType = get(handles.figure1 ,'SelectionType'); if(strcmp(slType,'normal')) if(y&lt;0.05 &amp;&amp; y&gt;-0.05) line(x,y,'marker','X','HitTest','off'); handles.poles=handles.poles*(handles.sVar-x-y) guidata(hObject, handles); else line(x,y,'marker','X','HitTest','off'); line(x,-y,'marker','X','HitTest','off'); handles.poles=handles.poles*(handles.sVar-x-y)*(handles.sVar-x+y); guidata(hObject, handles); end else line(x,y,'marker','O','HitTest','off'); handles.zeros=handles.zeros*((handles.sVar-x-y)*(handles.sVar-x+y)); guidata(hObject, handles); end update(hObject,handles); set(hObject,'buttondownfcn',{@axes1_ButtonDownFcn,handles}); </code></pre> <p>Below are the callbacks to remove the data.</p> <pre><code>% --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) guidata(hObject,handles); delete(findobj(handles.axes1,'Type','line','Marker','X')); handles.poles=handles.sVar; guidata(hObject, handles); update(hObject,handles); % --- Executes on button press in pushbutton2. function pushbutton2_Callback(hObject, eventdata, handles) % hObject handle to pushbutton2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) guidata(hObject,handles); delete(findobj(handles.axes1,'Type','line','Marker','O')); handles.zeros=handles.sVar; guidata(hObject, handles); update(hObject,handles); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload