Function: 'Gui - Name' 'Gui - Singleton' 'Gui - Openingfcn' 'Gui - Outputfcn' 'Gui - Layoutfcn' 'Gui - Callback'
Function: 'Gui - Name' 'Gui - Singleton' 'Gui - Openingfcn' 'Gui - Outputfcn' 'Gui - Layoutfcn' 'Gui - Callback'
Function: 'Gui - Name' 'Gui - Singleton' 'Gui - Openingfcn' 'Gui - Outputfcn' 'Gui - Layoutfcn' 'Gui - Callback'
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Outputs from this function are returned to the command line.
function varargout = interfaz_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
imagen=imread('armadura.jpeg');
image(imagen,'Parent',handles.axes4);
set(handles.axes4,'XTick',[],'YTick',[]);
box on;
grip on;
handles.output = hObject;
%Update handles structure
guidata(hObject,handles);
% Get default command line output from handles structure
varargout{1} = handles.output;
% barra 2
x=linspace(3,6,100)
y=linspace(3,3,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 3
x=linspace(6,9,100)
y=linspace(3,3,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 4
x=linspace(9,12,100)
y=linspace(3,3,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 5
x=linspace(12,9,100)
y=linspace(3,0,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 6
x=linspace(9,6,100)
y=linspace(0,0,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 7
x=linspace(6,3,100)
y=linspace(0,0,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 8
x=linspace(3,0,100)
y=linspace(0,0,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 9
x=linspace(9,9,100)
y=linspace(0,3,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 10
x=linspace(9,6,100)
y=linspace(3,0,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 11
x=linspace(6,6,100)
y=linspace(0,3,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 12
x=linspace(6,3,100)
y=linspace(3,0,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
% barra 13
x=linspace(3,3,100)
y=linspace(0,3,100)
plot(x,y,'r')
plot(x,y,'k')
hold on
axis([-2 14 -2 5])
contenido=get(hObject,'string');
a=get(hObject,'value');
tipo=contenido(a);
Q1=str2double(get(handles.Q1,'string'));
Q2=str2double(get(handles.Q2,'string'));
% V1 V2 H1 H2 F1 F2 F3 F4 F5 F6
A=[0 0 1 0 -cos(pi/4) 0 0 0 0 0;...
1 0 0 0 -sin(pi/4) 0 0 0 0 0;...
0 0 0 0 sin(pi/4) -cos(44.76*pi/180) 0 -sin(67.38*pi/180) 0 0;...
0 0 0 0 cos(pi/4) sin(44.76*pi/180) 0 -cos(67.38*pi/180) 0 0;...
0 0 0 -1 0 cos(22.38*pi/180) cos(pi/4) 0 0 0;...
0 1 0 0 0 -sin(22.38*pi/180) -sin(pi/4) 0 0 0;...
0 0 0 0 0 0 -sin(pi/4) cos(22.62*pi/180) cos(67.38*pi/180) 0;...
0 0 0 0 0 0 cos(pi/4) sin(22.62*pi/180) -sin(67.38*pi/180) 0;...
0 0 0 0 0 0 0 0 -sin(22.62*pi/180) 0;...
0 0 0 0 0 0 0 0 cos(22.62*pi/180) 1];
switch cell2mat(tipo)
set(handles.ta,'data',X0);
1.0000 0 0 -0.7071 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 -0.7071 0 0 0 0 0 0 1.0000 0 0 0 0
0
0 0 0 0.7071 0 0 0 0 0 0 0 0 0 0 0
-1.0000
0 0 0 0.7071 1.0000 0 0 0 0 0 0 0 0 0 0
0
0 0 0 0 0 0 0 0 0 0 0 0 0 1.0000 -0.7071
0
0 0 0 0 0 0 0 0 0 0 0 -1.0000 0.7071 0 0
0
0 1.0000 0 0 0 0 0 -0.7071 0 0 0 0 0 0 0
0
0 0 0 0 0 0 0 -0.7071 1.0000 0 0 0 0 0 0
0
0 0 0 0 0 0 0 0.7071 0 0 0 1.0000 0 0 0
0
0 0 0 0 0 0 0 0 0 0 0 0 -0.7071 1.0000 0
0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7071
1.0000
>