Function: Pushbutton1 - Callback (Hobject, Eventdata, Handles)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

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)
x=[6 0 0 0 6];
y=[0 6 0 -6 0];
z=[0 0 8 0 0];

x1=[0 0];
y1=[6 -6];
z1=[0 0];

x2=[0 6];
y2=[0 0];
z2=[8 0];

plot3(x,y,z,'r-',x1,y1,z1,'r-',x2,y2,z2,'r-')
rotate3d on
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)

FX=str2double(get(handles.edit1,'string'));
FY=str2double(get(handles.edit2,'string'));
FZ=str2double(get(handles.edit3,'string'));
A=xlsread('ARMADURA.xlsx','C25:H30');
B=[0; 0; FX; FY; FZ; 0];
X=inv(A)*B;
set(handles.uitable1,'data',X);

You might also like