Hi, I want to delete a line from a plot in GUI. To do that, I have created the following code:
line1=num2str(get(handles.plotHandles,'XData'));delete(line1)
where line1 is composed of 2×1 cells = [ 1×2 double]
[1×2 double]
it seems something is wrong here but I cannot find the solution. I am getting the following error:
Any suggestion to fix this error?
Undefined function 'abs' for input arguments of type 'cell'.Error in num2str (line 66) xmax = double(max(abs(widthCopy(:))));Error in Loading_Well_logs>pushbutton8_Callback (line 1931)line1=num2str(get(handles.plotHandles,'XData'));Error in gui_mainfcn (line 95) feval(varargin{:});Error in Loading_Well_logs (line 42) gui_mainfcn(gui_State, varargin{:});Error in @(hObject,eventdata)Loading_Well_logs('pushbutton8_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback
Best Answer