Error after clicking in pushbutton "Parent must be a scalar graphics handle."
Show older comments
% --- 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)
%%Jesli radio1 jest zaznaczone to obliczy deformacje pomiaru 0-N
%%Obliczanie Obniżeń
[num,txt]=xlsread('dane0.xlsx');
num(isnan(num))=00;
x=num
set(handles.tabela0,'data',x);
x=get(handles.tabela0,'data');
w=x(:,3)-x(:,2);
wpoz=x(1:end,1);
calosc=[wpoz w]
set(handles.tabelaw,'data',calosc);
x=get(handles.tabela0,'data');
wykresww = findobj('Tag', 'axes1');
plot(wykresww,calosc(1:2:end,1),calosc(1:2:end,2));
After clicking Run, and click in pushbutton2 I have results but If I click again in pushbutton2 I have error:

Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!