Académique Documents
Professionnel Documents
Culture Documents
MACROS Y GUIDE
TRATAMIENTO DE ERRORES
1. MACROS (EXCEL)
MESA 1
No. NOMBRES A B C D
1 MELISA 73 46 51,3 47
2 ENRIQUE 72 48 52 45
3 VALERIA 72 46 59 47
4 MASSIEL 70 45 51,2 44,7
YECIT tu salvador
5
70 44,7 51,2 45,1
MESA 2
No. NOMBRES A B C D
1 Gerardo 70 45,4 51,5 45
2 Alisson 70 45,5 51,5 45
3 Tania 70 45 51 45,1
4 Jhoselin 70,1 45,5 51,6 45,1
5 Wara 70,2 45,5 51,5 45
6 Alférez 70 45,5 51,9 45,8
7 Mauricio 70,4 45,7 51,8 45,6
8 Jonathan 70 45,5 51,6 45
MESA 3
No. NOMBRES A B C D
1 JHESICA 69,8 51,2 50,5 50,9
2 KAREN 69,5 50,8 50 50,8
3 DUMA 69,7 50,9 50,5 50,9
4 BRAYAN 69,5 50,5 50 50,8
MESA 1
A B C D
MEDIA ARITMÉTICA 71,400 45,940 52,940 45,760
MEDIA GEOMÉTRICA 71,390 45,926 52,857 45,749
MEDIA ARMÓNICA 71,380 45,911 52,778 45,737
VARIANZA 1,800 1,668 11,588 1,303
DESVIACIÓN ESTÁNDAR 1,342 1,292 3,404 1,141
ERROR 0,600 0,578 1,522 0,510
MESA 2
A B C D
MEDIA ARITMÉTICA 70,088 45,450 51,550 45,200
MEDIA GEOMÉTRICA 70,087 45,450 51,549 45,199
MEDIA ARMÓNICA 70,087 45,449 51,549 45,198
VARIANZA 0,021 0,040 0,071 0,100
DESVIACIÓN ESTÁNDAR 0,146 0,200 0,267 0,316
ERROR 0,052 0,071 0,094 0,112
MESA 3
A B C D
MEDIA ARITMÉTICA 69,625 50,850 50,250 50,850
MEDIA GEOMÉTRICA 69,625 50,849 50,249 50,850
MEDIA ARMÓNICA 69,625 50,849 50,249 50,850
VARIANZA 0,022 0,083 0,083 0,003
DESVIACIÓN ESTÁNDAR 0,150 0,289 0,289 0,058
ERROR 0,075 0,144 0,144 0,029
Para mantener los datos correctos y todas las fórmulas, se guardó en un macro:
Sub Macro_1_ESTADISTICOS ()
' Macro_1_ESTADISTICOS Macro
' CÁLCULO DE DATOS ESTADÍSTICOS
' Acceso directo: Ctrl+Mayús+D
'
ActiveCell.FormulaR1C1 = "=AVERAGE(R[1]C[-6]:R[5]C[-6])"
Range("J5").Select
Selection.AutoFill Destination:=Range("J5:M5"), Type:=xlFillDefault
Range("J5:M5").Select
Range("J6").Select
ActiveCell.FormulaR1C1 = "=GEOMEAN(RC[-6]:R[4]C[-6])"
Range("J6").Select
Selection.AutoFill Destination:=Range("J6:M6"), Type:=xlFillDefault
Range("J6:M6").Select
Selection.NumberFormat = "0.000"
Range("J7").Select
ActiveCell.FormulaR1C1 = "=HARMEAN(R[-1]C[-6]:R[3]C[-6])"
Range("J7").Select
Selection.AutoFill Destination:=Range("J7:M7"), Type:=xlFillDefault
Range("J7:M7").Select
Selection.NumberFormat = "0.000"
Range("J8").Select
ActiveCell.FormulaR1C1 = "=VAR(R[-2]C[-6]:R[2]C[-6])"
Range("J8").Select
Selection.AutoFill Destination:=Range("J8:M8"), Type:=xlFillDefault
Range("J8:M8").Select
Range("J9").Select
ActiveCell.FormulaR1C1 = "=STDEVA(R[-3]C[-6]:R[1]C[-6])"
Range("J9").Select
Selection.AutoFill Destination:=Range("J9:M9"), Type:=xlFillDefault
Range("J9:M9").Select
Selection.NumberFormat = "0.000"
Range("J10").Select
ActiveCell.FormulaR1C1 = "=R[-1]C/SQRT(R10C2)"
Range("J10").Select
Selection.AutoFill Destination:=Range("J10:M10"), Type:=xlFillDefault
Range("J10:M10").Select
Selection.NumberFormat = "0.000"
Range("K12").Select
End Sub
2. GUIDE (MATLAB)
function varargout = untitled(varargin)
% UNTITLED MATLAB code for untitled.fig
% UNTITLED, by itself, creates a new UNTITLED or raises the existing
% singleton*.
%
% H = UNTITLED returns the handle to a new UNTITLED or the handle to
% the existing singleton*.
%
% UNTITLED('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in UNTITLED.M with the given input
arguments.
%
% UNTITLED('Property','Value',...) creates a new UNTITLED or raises
the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before untitled_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to untitled_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only
one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
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 = untitled_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)
set(handles.dato1,'string','');
set(handles.dato2,'string','');
set(handles.dato3,'string','');
set(handles.dato4,'string','');
set(handles.dato5,'string','');
set(handles.dato6,'string','');
set(handles.dato7,'string','');
set(handles.dato8,'string','');
set(handles.resultado1,'string','');
set(handles.resultado2,'string','');
set(handles.resultado3,'string','');
set(handles.resultado4,'string','');
set(handles.resultado5,'string','');
% hObject handle to limpiar (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
>> untitled
X=
70.0875
G=
2.2059
X=
70.0872
Var =
0.0212
Desv =
0.1458