Uso de programa

Páginas: 8 (1882 palabras) Publicado: 1 de diciembre de 2011
function varargout = alo(varargin)
% ALO MATLAB code for alo.fig
% ALO, by itself, creates a new ALO or raises the existing
% singleton*.
%
% H = ALO returns the handle to a new ALO or the handle to
% the existing singleton*.
%
% ALO('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ALO.M with the given input arguments.%
% ALO('Property','Value',...) creates a new ALO or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before alo_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to alo_OpeningFcn via varargin.
%
% *See GUI Options onGUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help alo

% Last Modified by GUIDE v2.5 30-Nov-2011 16:43:50

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton',gui_Singleton, ...
'gui_OpeningFcn', @alo_OpeningFcn, ...
'gui_OutputFcn', @alo_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before alo is made visible.
function alo_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handlesand user data (see GUIDATA)
% varargin command line arguments to alo (see VARARGIN)

% Choose default command line output for alo
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes alo wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
functionvarargout = alo_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)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes onbutton 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)
axes(handles.axes1);

H=[1 0 0 3 5 5 3 2 2 4 6 8 8 10 14 16 16 15 13 11 9 8 8 9 9 6 6 4 3 3 5 5 1;2 8 12 15 15 14 12 12 9 1111 9 13 11 11 13 7 6 5 5 6 7 4 4 2 2 6 6 5 4 4 2 2 ];
x=H(1,:)';y=H(2,:)';plot(x,y);
axis([-20 20 -20 20]); axis('square');
guidata(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
% handlesstructure with handles and user data (see GUIDATA)
axes(handles.axes1);
H=[1 0 0 3 5 5 3 2 2 4 6 8 8 10 14 16 16 15 13 11 9 8 8 9 9 6 6 4 3 3 5 5 1;2 8 12 15 15 14 12 12 9 11 11 9 13 11 11 13 7 6 5 5 6 7 4 4 2 2 6 6 5 4 4 2 2 ];

A=[1 0;0 -1];
B=A*H;
x=B(1,:)';y=B(2,:)';plot(x,y);
axis([-20 20 -20 20]); axis('square');title('Simetría respecto OX')
guidata(hObject,handles);



% ---...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Uso De Los Programas Estadisticos
  • PROGRAMA USO EFICIENTE DEL AGUA
  • El uso de estrategias en el programa 2009
  • Manual de uso del programa freemind
  • programas educativos con el uso de las tics
  • Uso De Program Cc
  • Programa De Control Del Uso De Antibióticos
  • Programa De Radio Uso De Casco

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS