You are on page 1of 173

function varargout = ModulacionFM(varargin)

% MODULACIONFM M-file for ModulacionFM.fig


%
MODULACIONFM, by itself, creates a new MODULACIONFM or
raises the existing
%
singleton*.
%
%
H = MODULACIONFM returns the handle to a new
MODULACIONFM or the handle to
%
the existing singleton*.
%
%
MODULACIONFM('CALLBACK',hObject,eventData,handles,...)
calls the local
%
function named CALLBACK in MODULACIONFM.M with the
given input arguments.
%
%
MODULACIONFM('Property','Value',...) creates a new
MODULACIONFM or raises the
%
existing singleton*. Starting from the left, property
value pairs are
%
applied to the GUI before ModulacionFM_OpeningFunction
gets called. An
%
unrecognized property name or invalid value makes
property application
%
stop. All inputs are passed to
ModulacionFM_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
% Copyright 2002-2003 The MathWorks, Inc.
% Edit the above text to modify the response to help
ModulacionFM
% Last Modified by GUIDE v2.5 05-May-2011 17:27:20
% Begin initialization code - DO NOT
gui_Singleton = 1;
gui_State = struct('gui_Name',
'gui_Singleton',
'gui_OpeningFcn',
@ModulacionFM_OpeningFcn, ...
'gui_OutputFcn',
...

EDIT
mfilename, ...
gui_Singleton, ...
@ModulacionFM_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 ModulacionFM is made visible.
function ModulacionFM_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 handles and user data (see
GUIDATA)
% varargin
command line arguments to ModulacionFM (see
VARARGIN)
% Choose default command line output for ModulacionFM
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes ModulacionFM wait for user response (see
UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command
line.
function varargout = ModulacionFM_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
GUIDATA)

structure with handles and user data (see

% Get default command line output from handles structure


varargout{1} = handles.output;
% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject
handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
global val
val = get(hObject,'Value');
% Hints: contents = get(hObject,'String') returns popupmenu1
contents as cell array
%
contents{get(hObject,'Value')} returns selected item
from popupmenu1
% --- Executes during object creation, after setting all
properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject
handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: popupmenu controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end
% --- Executes on slider movement.
function slider1_Callback(hObject, eventdata, handles)
% hObject
handle to slider1 (see GCBO)

% eventdata
MATLAB
% handles
GUIDATA)

reserved - to be defined in a future version of


structure with handles and user data (see

% Hints: get(hObject,'Value') returns position of slider


%
get(hObject,'Min') and get(hObject,'Max') to
determine range of slider
global Vc M J Mw Vm fm fc beta Desv n BW N Fs P val
value = get(hObject,'value');
%PROGRAMACION PARA CONVERTIR LOS STRING QUE EN ESTE CASO SON
LOS PARAMETROS
%DE ENTRADA EN NUMEROS REALES LISTOS PARA SER OPERADOS.
beta=get(handles.slider1,'Value');
N=str2double(get(handles.edit6,'String'));
Fs=str2double(get(handles.edit7,'String'));
Vm=str2double(get(handles.edit1,'String'));
fm=str2double(get(handles.edit2,'String'));
fc=str2double(get(handles.edit3,'String'));
Vc=str2double(get(handles.edit5,'String'));
P=get(handles.slider2,'Value');
%PARAMETROS POR DEFECTO PARA INICIALIZAR EL PROGRAMA.
Ts=1/Fs; %Periodo
t=(0:N)/N; %Vector del tiempo
f=(-N/2:N/2);
tm=0:(P/fm)/N:P/fm;
tc=0:(P/fc)/N:P/fc;
Desv=fm*beta;
%ECUACION DE LA SEAL MODULADORA EN FUNCION DEL TIEMPO Y DE
LA FRECUENCIA
Vm_t=Vm*sin(2*pi*fm*tm);
%Seal Moduladora
Vm_t1=Vm*sin(2*pi*fm*t);
%Seal Moduladora
Vm_w=abs(fftshift(fft(Vm_t1,length(f))))/length(f);
%ECUACION DE LA SEAL PORTADORA EN FUNCION DEL TIEMPO Y DE LA
FRECUENCIA
Vc_t=Vc*sin(2*pi*fc*tc); %Seal Portadora
Vc_t1=Vc*sin(2*pi*fc*t); %Seal Portadora
Vc_w=abs(fftshift(fft(Vc_t1,length(f))))/length(f);
%ECUACION DE LA SEAL MODULADA EN FUNCION DEL TIEMPO Y DE LA
FRECUENCIA
m_t=Vc*sin(2*pi*fc+beta*cos(2*pi*fm*t));

m_w=abs(fftshift(fft(m_t,length(f))))/length(f);
%EL PROGRAMA SELECCIONARA UNO DE ESTOS CASOS DEACUERDO A LAS
OPCIONES
%TOMADAS DEL POPUPMENU
switch val
case 1;
errordlg('Seleccionar Seal','Error')
case 2;
subplot(handles.axes1),plot(tm,Vm_t)
title('Seal Moduladora en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,Vm_w)
title('Seal Moduladora en el dominio de la
Frecuencia','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
A=0;
subplot(handles.axes3),plot(f,A)
title('IMAGEN NO DISPONIBLE','fontsize',12)
Jm0=0;
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));

Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',0);
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',0);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);

set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
beta=0;
n=0;
BW=0;
Df=0;
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.periodo,'String',P);
set(handles.edit4,'String',0);
set(handles.text25,'String',0);
set(handles.text26,'String',0);
set(handles.text27,'String',0);
guidata(hObject, handles);
case 3;
subplot(handles.axes1),plot(tc,Vc_t)
title('Seal Portadora en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo'),ylabel('Amplitud (Volts)')
subplot(handles.axes2),plot(f,Vc_w)
title('Seal Portadora en el dominio de la
Frecuencia','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
A=0;
subplot(handles.axes3),plot(f,A)
title('IMAGEN NO DISPONIBLE','fontsize',12)
Jm0=0;
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;

Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',0);
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));

Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',0);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
beta=0;
n=0;
BW=0;
Df=0;
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.edit4,'String',0);
set(handles.text25,'String',0);
set(handles.text26,'String',0);
set(handles.text27,'String',0);
set(handles.periodo,'String',P);
guidata(hObject, handles);
case 4;
beta=get(handles.slider1,'Value');
n=str2double(get(handles.text25,'String'));
J=[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0.25 0.98 0.12 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0.5 0.94 0.24 0.03 0 0 0 0 0 0 0 0 0 0 0 0 ;
1 0.77 0.44 0.11 0.02 0 0 0 0 0 0 0 0 0 0 0 ;
1.5 0.51 0.56 0.23 0.06 0.01 0 0 0 0 0 0 0 0 0 0 ;
2 0.22 0.58 0.35 0.13 0.03 0 0 0 0 0 0 0 0 0 0 ;

2.4 0 0.52 0.43 0.2 0.06 0.02 0 0 0 0 0 0 0 0 0;


2.5 -0.05 0.50 0.45 0.22 0.07 0.02 0.01 0 0 0 0 0 0 0 0 ;
3 -0.25 0.34 0.49 0.31 0.13 0.04 0.01 0 0 0 0 0 0 0 0 ;
4 -0.4 -0.07 0.36 0.43 0.28 0.13 0.05 0.02 0 0 0 0 0 0 0 ;
5 -0.18 -0.33 0.05 0.36 0.39 0.26 0.13 0.05 0.02 0 0 0 0 0
0 ;
5.45 0 -0.34 -0.12 0.23 0.4 0.32 0.19 0.09 0.03 0.01 0 0 0
0 0;
6 0.15 -0.28 -0.24 0.11 0.36 0.36 0.25 0.13 0.06 0.02 0 0
0 0 0 ;
7 0.3 0 -0.3 -0.17 0.16 0.36 0.34 0.23 0.13 0.06 0.02 0 0
0 0 ;
8 0.17 0.23 -0.11 -0.29 -0.1 0.19 0.34 0.32 0.22 0.13 0.06
0.03 0 0 0 ;
8.65 0 0.27 0.06 -0.24 -0.23 0.03 0.26 0.34 0.28 0.18 0.1
0.05 0.02 0 0;
9 -0.09 0.24 0.14 -0.18 -0.27 -0.06 0.2 0.33 0.3 0.21 0.12
0.06 0.03 0.01 0 ;
10 -0.25 0.04 0.25 0.06 -0.22 -0.23 -0.01 0.22 0.31 0.29
0.2 0.12 0.06 0.03 0.01];
if (beta>=0&&beta<0.25)
n=0;
M0=Vc*(J(1,2)*cos(2*pi*fc.*tc));
M=Vc*(J(1,2)*cos(2*pi*fc.*t));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(1,2)^2)/2*cos(2*pi*fc.*t));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(1,2);
Jm1=0;
Jm2=0;
Jm3=0;

Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(1,2));
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));

Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(1,2))^2/2);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=0.25&&beta<0.5)
n=1;
M0=Vc*(J(2,2).*cos(2*pi*fc.*tc)+J(2,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2));
M=Vc*(J(2,2).*cos(2*pi*fc.*t)+J(2,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(2,2)^2).*cos(2*pi*fc.*t)/2+(J(2,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)

grid on,xlabel('Tiempo (s)'),ylabel('Amplitud


(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(2,2);
Jm1=Vc*J(2,3);
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit6,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(2,2));
set(handles.text102,'String',Vc*J(2,3));

set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(2,2))^2/2);
set(handles.text67,'String',(Vc*J(2,3))^2);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);

elseif (beta>=0.5&&beta<1)
n=2;
M0=Vc*(J(3,2).*cos(2*pi*fc.*tc)+J(3,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(3,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2));
M=Vc*(J(3,2).*cos(2*pi*fc.*t)+J(3,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(3,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(3,2)^2).*cos(2*pi*fc.*t)/2+(J(3,3))^2*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(3,4))^2*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(3,2);
Jm1=Vc*J(3,3);
Jm2=Vc*J(3,4);
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));

Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(3,2));
set(handles.text102,'String',Vc*J(3,3));
set(handles.text103,'String',Vc*J(3,4));
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));

set(handles.text66,'String',(Vc*J(3,2))^2/2);
set(handles.text67,'String',(Vc*J(3,3))^2);
set(handles.text68,'String',(Vc*J(3,4))^2);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=1&&beta<1.5)
n=3;
M0=Vc*(J(4,2).*cos(2*pi*fc.*tc)+J(4,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(4,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(4,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2));
M=Vc*(J(4,2).*cos(2*pi*fc.*t)+J(4,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(4,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(4,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=Vc^2*((J(4,2)^2).*cos(2*pi*fc.*t)/2+(J(4,3)^2)*cos(2*pi*fc
*t+2*pi*fm.*t+pi/2)+(J(4,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*p
i/2)+(J(4,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)

grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud


(Watts)')
Jm0=Vc*J(4,2);
Jm1=Vc*J(4,3);
Jm2=Vc*J(4,4);
Jm3=Vc*J(4,5);
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(4,2));
set(handles.text102,'String',Vc*J(4,3));
set(handles.text103,'String',Vc*J(4,4));
set(handles.text104,'String',Vc*J(4,5));
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);

set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(4,2))^2/2);
set(handles.text67,'String',(Vc*J(4,3))^2);
set(handles.text68,'String',(Vc*J(4,4))^2);
set(handles.text69,'String',(Vc*J(4,5))^2);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=1.5&&beta<2)
n=4;
M0=Vc*(J(5,2)*cos(2*pi*fc*tc)+J(5,3)*cos(2*pi*fc*tc+2*pi*fm*t
m+pi/2)+J(5,4)*cos(2*pi*fc*tc+2*2*pi*fm*tm+2*pi/2)+J(5,5)*cos
(2*pi*fc*tc+3*2*pi*fm*tm+3*pi/2)+J(5,6)*cos(2*pi*fc*tc+4*2*pi
*fm*tm+4*pi/2));
M=Vc*(J(5,2)*cos(2*pi*fc*t)+J(5,3)*cos(2*pi*fc*t+2*pi*fm*t+pi
/2)+J(5,4)*cos(2*pi*fc*t+2*2*pi*fm*t+2*pi/2)+J(5,5)*cos(2*pi*

fc*t+3*2*pi*fm*t+3*pi/2)+J(5,6)*cos(2*pi*fc*t+4*2*pi*fm*t+4*p
i/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(5,2)^2)*cos(2*pi*fc*t)/2+(J(5,3)^2)*cos(2*pi*fc
*t+2*pi*fm*t+pi/2)+(J(5,4)^2)*cos(2*pi*fc*t+2*2*pi*fm*t+2*pi/
2)+(J(5,5)^2)*cos(2*pi*fc*t+3*2*pi*fm*t+3*pi/2)+(J(5,6)^2)*co
s(2*pi*fc*t+4*2*pi*fm*t+4*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(5,2);
Jm1=Vc*J(5,3);
Jm2=Vc*J(5,4);
Jm3=Vc*J(5,5);
Jm4=Vc*J(5,6);
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm6=str2double(get(handles.text108,'String'));

Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(5,2));
set(handles.text102,'String',Vc*J(5,3));
set(handles.text103,'String',Vc*J(5,4));
set(handles.text104,'String',Vc*J(5,5));
set(handles.text105,'String',Vc*J(5,6));
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(5,2))^2/2);
set(handles.text67,'String',(Vc*J(5,3))^2);
set(handles.text68,'String',(Vc*J(5,4))^2);
set(handles.text69,'String',(Vc*J(5,5))^2);
set(handles.text70,'String',(Vc*J(5,6))^2);

set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2&&beta<2.4)
n=4;
M0=Vc*(J(6,2).*cos(2*pi*fc.*tc)+J(6,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(6,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(6,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(6,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2));
M=Vc*(J(6,2).*cos(2*pi*fc.*t)+J(6,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(6,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(6,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(6,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(6,2)^2).*cos(2*pi*fc.*t)/2+(J(6,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(6,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(6,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(6,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(6,2);
Jm1=Vc*J(6,3);

Jm2=Vc*J(6,4);
Jm3=Vc*J(6,5);
Jm4=Vc*J(6,6);
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(6,2));
set(handles.text102,'String',Vc*J(6,3));
set(handles.text103,'String',Vc*J(6,4));
set(handles.text104,'String',Vc*J(6,5));
set(handles.text105,'String',Vc*J(6,6));
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(6,2))^2/2);
set(handles.text67,'String',(Vc*J(6,3))^2);
set(handles.text68,'String',(Vc*J(6,4))^2);
set(handles.text69,'String',(Vc*J(6,5))^2);
set(handles.text70,'String',(Vc*J(6,6))^2);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2.4&&beta<2.5)
n=5;
M0=Vc*(J(7,2).*cos(2*pi*fc.*tc)+J(7,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(7,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(7,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(7,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(7,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2));
M=Vc*(J(7,2).*cos(2*pi*fc.*t)+J(7,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(7,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(7,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(7,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(7,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);

M1=(Vc^2)*((J(7,2)^2).*cos(2*pi*fc.*t)/2+(J(7,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(7,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(7,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(7,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(7,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(7,2);
Jm1=Vc*J(7,3);
Jm2=Vc*J(7,4);
Jm3=Vc*J(7,5);
Jm4=Vc*J(7,6);
Jm5=Vc*J(7,7);
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));

Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(7,2));
set(handles.text102,'String',Vc*J(7,3));
set(handles.text103,'String',Vc*J(7,4));
set(handles.text104,'String',Vc*J(7,5));
set(handles.text105,'String',Vc*J(7,6));
set(handles.text106,'String',Vc*J(7,7));
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(7,2))^2/2);
set(handles.text67,'String',(Vc*J(7,3))^2);
set(handles.text68,'String',(Vc*J(7,4))^2);
set(handles.text69,'String',(Vc*J(7,5))^2);
set(handles.text70,'String',(Vc*J(7,6))^2);
set(handles.text71,'String',(Vc*J(7,7))^2);

set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2.5&&beta<3)
n=6;
M0=Vc*(J(8,2).*cos(2*pi*fc.*tc)+J(8,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(8,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(8,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(8,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(8,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2)+J(8,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2));
M=Vc*(J(8,2).*cos(2*pi*fc.*t)+J(8,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(8,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(8,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(8,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(8,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(8,8)*c
os(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(8,2)^2).*cos(2*pi*fc.*t)/2+(J(8,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(8,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(8,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(8,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(8,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2)+(J(8,8)^2)*cos(2*pi*fc*t+6*2*pi*fm.*t+
6*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)

grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud


(Watts)')
Jm0=Vc*J(8,2);
Jm1=Vc*J(8,3);
Jm2=Vc*J(8,4);
Jm3=Vc*J(8,5);
Jm4=Vc*J(8,6);
Jm5=Vc*J(8,7);
Jm6=Vc*J(8,8);
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(8,2));
set(handles.text102,'String',Vc*J(8,3));
set(handles.text103,'String',Vc*J(8,4));
set(handles.text104,'String',Vc*J(8,5));
set(handles.text105,'String',Vc*J(8,6));
set(handles.text106,'String',Vc*J(8,7));
set(handles.text107,'String',Vc*J(8,8));
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);

set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(8,2))^2/2);
set(handles.text67,'String',(Vc*J(8,3))^2);
set(handles.text68,'String',(Vc*J(8,4))^2);
set(handles.text69,'String',(Vc*J(8,5))^2);
set(handles.text70,'String',(Vc*J(8,6))^2);
set(handles.text71,'String',(Vc*J(8,7))^2);
set(handles.text72,'String',(Vc*J(8,8))^2);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=3&&beta<4)
n=6;
M0=Vc*(J(9,2).*cos(2*pi*fc.*tc)+J(9,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(9,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(9,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(9,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(9,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2)+J(9,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2));
M=Vc*(J(9,2).*cos(2*pi*fc.*t)+J(9,3)*cos(2*pi*fc*t+2*pi*fm.*t

+pi/2)+J(9,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(9,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(9,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(9,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(9,8)*c
os(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(9,2)^2).*cos(2*pi*fc.*t)/2+(J(9,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(9,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(9,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(9,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(9,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2)+(J(9,8)^2)*cos(2*pi*fc*t+6*2*pi*fm.*t+
6*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(9,2);
Jm1=Vc*J(9,3);
Jm2=Vc*J(9,4);
Jm3=Vc*J(9,5);
Jm4=Vc*J(9,6);
Jm5=Vc*J(9,7);
Jm6=Vc*J(9,8);
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));

Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(9,2));
set(handles.text102,'String',Vc*J(9,3));
set(handles.text103,'String',Vc*J(9,4));
set(handles.text104,'String',Vc*J(9,5));
set(handles.text105,'String',Vc*J(9,6));
set(handles.text106,'String',Vc*J(9,7));
set(handles.text107,'String',Vc*J(9,8));
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));

set(handles.text66,'String',(Vc*J(9,2))^2/2);
set(handles.text67,'String',(Vc*J(9,3))^2);
set(handles.text68,'String',(Vc*J(9,4))^2);
set(handles.text69,'String',(Vc*J(9,5))^2);
set(handles.text70,'String',(Vc*J(9,6))^2);
set(handles.text71,'String',(Vc*J(9,7))^2);
set(handles.text72,'String',(Vc*J(9,8))^2);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=4&&beta<5)
n=7;
M0=Vc*(J(10,2).*cos(2*pi*fc.*tc)+J(10,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(10,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
0,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(10,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(10,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(10,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(10,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2));
M=Vc*(J(10,2).*cos(2*pi*fc.*t)+J(10,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(10,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(10,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(10,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(10,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
10,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(10,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(10,2)^2).*cos(2*pi*fc.*t)/2+(J(10,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(10,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(10,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
0,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(10,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(10,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(10,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
);
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')

subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(10,2);
Jm1=Vc*J(10,3);
Jm2=Vc*J(10,4);
Jm3=Vc*J(10,5);
Jm4=Vc*J(10,6);
Jm5=Vc*J(10,7);
Jm6=Vc*J(10,8);
Jm7=Vc*J(10,9);
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(10,2));
set(handles.text102,'String',Vc*J(10,3));
set(handles.text103,'String',Vc*J(10,4));
set(handles.text104,'String',Vc*J(10,5));

set(handles.text105,'String',Vc*J(10,6));
set(handles.text106,'String',Vc*J(10,7));
set(handles.text107,'String',Vc*J(10,8));
set(handles.text108,'String',Vc*J(10,9));
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(10,2))^2/2);
set(handles.text67,'String',(Vc*J(10,3))^2);
set(handles.text68,'String',(Vc*J(10,4))^2);
set(handles.text69,'String',(Vc*J(10,5))^2);
set(handles.text70,'String',(Vc*J(10,6))^2);
set(handles.text71,'String',(Vc*J(10,7))^2);
set(handles.text72,'String',(Vc*J(10,8))^2);
set(handles.text73,'String',(Vc*J(10,9))^2);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=5&&beta<5.45)
n=8;

M0=Vc*(J(11,2).*cos(2*pi*fc.*tc)+J(11,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(11,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
1,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(11,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(11,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(11,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(11,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(11,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2));
M=Vc*(J(11,2).*cos(2*pi*fc.*t)+J(11,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(11,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(11,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(11,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(11,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
11,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(11,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(11,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(11,2)^2).*cos(2*pi*fc.*t)/2+(J(11,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(11,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(11,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
1,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(11,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(11,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(11,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(11,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(11,2);
Jm1=Vc*J(11,3);
Jm2=Vc*J(11,4);
Jm3=Vc*J(11,5);
Jm4=Vc*J(11,6);
Jm5=Vc*J(11,7);

Jm6=Vc*J(11,8);
Jm7=Vc*J(11,9);
Jm8=Vc*J(11,10);
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(11,2));
set(handles.text102,'String',Vc*J(11,3));
set(handles.text103,'String',Vc*J(11,4));
set(handles.text104,'String',Vc*J(11,5));
set(handles.text105,'String',Vc*J(11,6));
set(handles.text106,'String',Vc*J(11,7));
set(handles.text107,'String',Vc*J(11,8));
set(handles.text108,'String',Vc*J(11,9));
set(handles.text109,'String',Vc*J(11,10));
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));

Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(11,2))^2/2);
set(handles.text67,'String',(Vc*J(11,3))^2);
set(handles.text68,'String',(Vc*J(11,4))^2);
set(handles.text69,'String',(Vc*J(11,5))^2);
set(handles.text70,'String',(Vc*J(11,6))^2);
set(handles.text71,'String',(Vc*J(11,7))^2);
set(handles.text72,'String',(Vc*J(11,8))^2);
set(handles.text73,'String',(Vc*J(11,9))^2);
set(handles.text74,'String',(Vc*J(11,10))^2);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=5.45&&beta<6)
n=9;
M0=Vc*(J(12,2).*cos(2*pi*fc.*tc)+J(12,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(12,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
2,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(12,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(12,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(12,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(12,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(12,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(12,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2));
M=Vc*(J(12,2).*cos(2*pi*fc.*t)+J(12,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(12,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(12,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(12,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(12,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
12,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(12,9)*cos(2*pi*fc*

t+7*2*pi*fm.*t+7*pi/2)+J(12,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(12,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(12,2)^2).*cos(2*pi*fc.*t)/2+(J(12,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(12,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(12,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
2,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(12,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(12,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(12,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(12,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(12,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(12,2);
Jm1=Vc*J(12,3);
Jm2=Vc*J(12,4);
Jm3=Vc*J(12,5);
Jm4=Vc*J(12,6);
Jm5=Vc*J(12,7);
Jm6=Vc*J(12,8);
Jm7=Vc*J(12,9);
Jm8=Vc*J(12,10);
Jm9=Vc*J(12,11);
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));

Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(12,2));
set(handles.text102,'String',Vc*J(12,3));
set(handles.text103,'String',Vc*J(12,4));
set(handles.text104,'String',Vc*J(12,5));
set(handles.text105,'String',Vc*J(12,6));
set(handles.text106,'String',Vc*J(12,7));
set(handles.text107,'String',Vc*J(12,8));
set(handles.text108,'String',Vc*J(12,9));
set(handles.text109,'String',Vc*J(12,10));
set(handles.text110,'String',Vc*J(12,11));
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));

set(handles.text66,'String',(Vc*J(12,2))^2/2);
set(handles.text67,'String',(Vc*J(12,3))^2);
set(handles.text68,'String',(Vc*J(12,4))^2);
set(handles.text69,'String',(Vc*J(12,5))^2);
set(handles.text70,'String',(Vc*J(12,6))^2);
set(handles.text71,'String',(Vc*J(12,7))^2);
set(handles.text72,'String',(Vc*J(12,8))^2);
set(handles.text73,'String',(Vc*J(12,9))^2);
set(handles.text74,'String',(Vc*J(12,10))^2);
set(handles.text75,'String',(Vc*J(12,11))^2);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=6&&beta<7)
n=9;
M0=Vc*(J(13,2).*cos(2*pi*fc.*tc)+J(13,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(13,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
3,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(13,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(13,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(13,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(13,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(13,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(13,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2));
M=Vc*(J(13,2).*cos(2*pi*fc.*t)+J(13,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(13,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(13,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(13,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(13,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
13,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(13,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(13,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(13,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(13,2)^2).*cos(2*pi*fc.*t)/2+(J(13,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(13,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(13,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
3,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(13,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(13,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(13,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(13,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(13,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')

title('Seal Modulada en el dominio del


Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(13,2);
Jm1=Vc*J(13,3);
Jm2=Vc*J(13,4);
Jm3=Vc*J(13,5);
Jm4=Vc*J(13,6);
Jm5=Vc*J(13,7);
Jm6=Vc*J(13,8);
Jm7=Vc*J(13,9);
Jm8=Vc*J(13,10);
Jm9=Vc*J(13,11);
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));

set(handles.text101,'String',Vc*J(13,2));
set(handles.text102,'String',Vc*J(13,3));
set(handles.text103,'String',Vc*J(13,4));
set(handles.text104,'String',Vc*J(13,5));
set(handles.text105,'String',Vc*J(13,6));
set(handles.text106,'String',Vc*J(13,7));
set(handles.text107,'String',Vc*J(13,8));
set(handles.text108,'String',Vc*J(13,9));
set(handles.text109,'String',Vc*J(13,10));
set(handles.text110,'String',Vc*J(13,11));
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(13,2))^2/2);
set(handles.text67,'String',(Vc*J(13,3))^2);
set(handles.text68,'String',(Vc*J(13,4))^2);
set(handles.text69,'String',(Vc*J(13,5))^2);
set(handles.text70,'String',(Vc*J(13,6))^2);
set(handles.text71,'String',(Vc*J(13,7))^2);
set(handles.text72,'String',(Vc*J(13,8))^2);
set(handles.text73,'String',(Vc*J(13,9))^2);
set(handles.text74,'String',(Vc*J(13,10))^2);
set(handles.text75,'String',(Vc*J(13,11))^2);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);

set(handles.text80,'String',0);
elseif (beta>=7&&beta<8)
n=10;
M0=Vc*(J(14,2).*cos(2*pi*fc.*tc)+J(14,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(14,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
4,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(14,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(14,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(14,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(14,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(14,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(14,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(14,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2));
M=Vc*(J(14,2).*cos(2*pi*fc.*t)+J(14,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(14,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(14,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(14,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(14,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
14,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(14,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(14,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(14,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(14,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(14,2)^2).*cos(2*pi*fc.*t)/2+(J(14,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(14,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(14,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
4,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(14,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(14,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(14,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(14,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(14,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(14,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)

grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud


(Watts)')
Jm0=Vc*J(14,2);
Jm1=Vc*J(14,3);
Jm2=Vc*J(14,4);
Jm3=Vc*J(14,5);
Jm4=Vc*J(14,6);
Jm5=Vc*J(14,7);
Jm6=Vc*J(14,8);
Jm7=Vc*J(14,9);
Jm8=Vc*J(14,10);
Jm9=Vc*J(14,11);
Jm10=Vc*J(14,12);
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(14,2));
set(handles.text102,'String',Vc*J(14,3));
set(handles.text103,'String',Vc*J(14,4));
set(handles.text104,'String',Vc*J(14,5));
set(handles.text105,'String',Vc*J(14,6));
set(handles.text106,'String',Vc*J(14,7));
set(handles.text107,'String',Vc*J(14,8));
set(handles.text108,'String',Vc*J(14,9));
set(handles.text109,'String',Vc*J(14,10));
set(handles.text110,'String',Vc*J(14,11));
set(handles.text111,'String',Vc*J(14,12));
set(handles.text112,'String',0);

set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(14,2))^2/2);
set(handles.text67,'String',(Vc*J(14,3))^2);
set(handles.text68,'String',(Vc*J(14,4))^2);
set(handles.text69,'String',(Vc*J(14,5))^2);
set(handles.text70,'String',(Vc*J(14,6))^2);
set(handles.text71,'String',(Vc*J(14,7))^2);
set(handles.text72,'String',(Vc*J(14,8))^2);
set(handles.text73,'String',(Vc*J(14,9))^2);
set(handles.text74,'String',(Vc*J(14,10))^2);
set(handles.text75,'String',(Vc*J(14,11))^2);
set(handles.text76,'String',(Vc*J(14,12))^2);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=8&&beta<8.65)
n=11;
M0=Vc*(J(15,2).*cos(2*pi*fc.*tc)+J(15,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(15,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
5,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(15,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(15,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(15,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(15,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(15,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(15,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm

+9*pi/2)+J(15,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(15
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2));
M=Vc*(J(15,2).*cos(2*pi*fc.*t)+J(15,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(15,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(15,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(15,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(15,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
15,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(15,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(15,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(15,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(15,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(15,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(15,2)^2).*cos(2*pi*fc.*t)/2+(J(15,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(15,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(15,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
5,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(15,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(15,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(15,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(15,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(15,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(15,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(15,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(15,2);
Jm1=Vc*J(15,3);
Jm2=Vc*J(15,4);
Jm3=Vc*J(15,5);
Jm4=Vc*J(15,6);
Jm5=Vc*J(15,7);
Jm6=Vc*J(15,8);

Jm7=Vc*J(15,9);
Jm8=Vc*J(15,10);
Jm9=Vc*J(15,11);
Jm10=Vc*J(15,12);
Jm11=Vc*J(15,13);
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(15,2));
set(handles.text102,'String',Vc*J(15,3));
set(handles.text103,'String',Vc*J(15,4));
set(handles.text104,'String',Vc*J(15,5));
set(handles.text105,'String',Vc*J(15,6));
set(handles.text106,'String',Vc*J(15,7));
set(handles.text107,'String',Vc*J(15,8));
set(handles.text108,'String',Vc*J(15,9));
set(handles.text109,'String',Vc*J(15,10));
set(handles.text110,'String',Vc*J(15,11));
set(handles.text111,'String',Vc*J(15,12));
set(handles.text112,'String',Vc*J(15,13));
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));

Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(15,2))^2/2);
set(handles.text67,'String',(Vc*J(15,3))^2);
set(handles.text68,'String',(Vc*J(15,4))^2);
set(handles.text69,'String',(Vc*J(15,5))^2);
set(handles.text70,'String',(Vc*J(15,6))^2);
set(handles.text71,'String',(Vc*J(15,7))^2);
set(handles.text72,'String',(Vc*J(15,8))^2);
set(handles.text73,'String',(Vc*J(15,9))^2);
set(handles.text74,'String',(Vc*J(15,10))^2);
set(handles.text75,'String',(Vc*J(15,11))^2);
set(handles.text76,'String',(Vc*J(15,12))^2);
set(handles.text77,'String',(Vc*J(15,13))^2);
set(handles.text78,'String', 0);
set(handles.text79,'String', 0);
set(handles.text80,'String', 0);
elseif (beta>=8.64&&beta<9)
n=12;
M0=Vc*(J(16,2).*cos(2*pi*fc.*tc)+J(16,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(16,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
6,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(16,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(16,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(16,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(16,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(16,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(16,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(16,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(16
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(16,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2));
M=Vc*(J(16,2).*cos(2*pi*fc.*t)+J(16,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(16,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(16,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(16,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(16,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
16,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(16,9)*cos(2*pi*fc*

t+7*2*pi*fm.*t+7*pi/2)+J(16,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(16,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(16,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(16,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(16,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(16,2)^2).*cos(2*pi*fc.*t)/2+(J(16,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(16,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(16,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
6,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(16,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(16,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(16,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(16,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(16,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(16,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(16,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(16,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(16,2);
Jm1=Vc*J(16,3);
Jm2=Vc*J(16,4);
Jm3=Vc*J(16,5);
Jm4=Vc*J(16,6);
Jm5=Vc*J(16,7);
Jm6=Vc*J(16,8);
Jm7=Vc*J(16,9);
Jm8=Vc*J(16,10);
Jm9=Vc*J(16,11);
Jm10=Vc*J(16,12);
Jm11=Vc*J(16,13);
Jm10=Vc*J(16,14);

Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(16,2));
set(handles.text102,'String',Vc*J(16,3));
set(handles.text103,'String',Vc*J(16,4));
set(handles.text104,'String',Vc*J(16,5));
set(handles.text105,'String',Vc*J(16,6));
set(handles.text106,'String',Vc*J(16,7));
set(handles.text107,'String',Vc*J(16,8));
set(handles.text108,'String',Vc*J(16,9));
set(handles.text109,'String',Vc*J(16,10));
set(handles.text110,'String',Vc*J(16,11));
set(handles.text111,'String',Vc*J(16,12));
set(handles.text112,'String',Vc*J(16,13));
set(handles.text113,'String',Vc*J(16,14));
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));

Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(16,2))^2/2);
set(handles.text67,'String',(Vc*J(16,3))^2);
set(handles.text68,'String',(Vc*J(16,4))^2);
set(handles.text69,'String',(Vc*J(16,5))^2);
set(handles.text70,'String',(Vc*J(16,6))^2);
set(handles.text71,'String',(Vc*J(16,7))^2);
set(handles.text72,'String',(Vc*J(16,8))^2);
set(handles.text73,'String',(Vc*J(16,9))^2);
set(handles.text74,'String',(Vc*J(16,10))^2);
set(handles.text75,'String',(Vc*J(16,11))^2);
set(handles.text76,'String',(Vc*J(16,12))^2);
set(handles.text77,'String',(Vc*J(16,13))^2);
set(handles.text78,'String',(Vc*J(16,14))^2);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=9&&beta<10)
n=13;
M0=Vc*(J(17,2).*cos(2*pi*fc.*tc)+J(17,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(17,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
7,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(17,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(17,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(17,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(17,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(17,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(17,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(17,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(17
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(17,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2)+J(17,15)*cos(2*pi*fc*tc+13*2*p
i*fm.*tm+13*pi/2));
M=Vc*(J(17,2).*cos(2*pi*fc.*t)+J(17,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(17,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(17,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(17,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(17,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
17,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(17,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(17,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(17,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(17,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(17,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(17,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2)+J(17,15)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2));

Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(17,2)^2).*cos(2*pi*fc.*t)/2+(J(17,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(17,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(17,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
7,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(17,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(17,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(17,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(17,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(17,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(17,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(17,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(17,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2)+(J(17,15)^2)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(17,2);
Jm1=Vc*J(17,3);
Jm2=Vc*J(17,4);
Jm3=Vc*J(17,5);
Jm4=Vc*J(17,6);
Jm5=Vc*J(17,7);
Jm6=Vc*J(17,8);
Jm7=Vc*J(17,9);
Jm8=Vc*J(17,10);
Jm9=Vc*J(17,11);
Jm10=Vc*J(17,12);
Jm11=Vc*J(17,13);
Jm10=Vc*J(17,14);
Jm13=Vc*J(17,15);
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));

Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(17,2));
set(handles.text102,'String',Vc*J(17,3));
set(handles.text103,'String',Vc*J(17,4));
set(handles.text104,'String',Vc*J(17,5));
set(handles.text105,'String',Vc*J(17,6));
set(handles.text106,'String',Vc*J(17,7));
set(handles.text107,'String',Vc*J(17,8));
set(handles.text108,'String',Vc*J(17,9));
set(handles.text109,'String',Vc*J(17,10));
set(handles.text110,'String',Vc*J(17,11));
set(handles.text111,'String',Vc*J(17,12));
set(handles.text112,'String',Vc*J(17,13));
set(handles.text113,'String',Vc*J(17,14));
set(handles.text114,'String',Vc*J(17,15));
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));

set(handles.text66,'String',(Vc*J(17,2))^2/2);
set(handles.text67,'String',(Vc*J(17,3))^2);
set(handles.text68,'String',(Vc*J(17,4))^2);
set(handles.text69,'String',(Vc*J(17,5))^2);
set(handles.text70,'String',(Vc*J(17,6))^2);
set(handles.text71,'String',(Vc*J(17,7))^2);
set(handles.text72,'String',(Vc*J(17,8))^2);
set(handles.text73,'String',(Vc*J(17,9))^2);
set(handles.text74,'String',(Vc*J(17,10))^2);
set(handles.text75,'String',(Vc*J(17,11))^2);
set(handles.text76,'String',(Vc*J(17,12))^2);
set(handles.text77,'String',(Vc*J(17,13))^2);
set(handles.text78,'String',(Vc*J(17,14))^2);
set(handles.text79,'String',(Vc*J(17,15))^2);
set(handles.text80,'String',0);
else (beta==10)
n=14;
M0=Vc*(J(18,2).*cos(2*pi*fc.*tc)+J(18,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(18,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
8,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(18,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(18,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(18,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(18,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(18,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(18,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(18,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(18
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(18,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2)+J(18,15)*cos(2*pi*fc*tc+13*2*p
i*fm.*tm+13*pi/2)+J(18,16)*cos(2*pi*fc*tc+14*2*pi*fm.*tm+14*p
i/2));
M=Vc*(J(18,2).*cos(2*pi*fc.*t)+J(18,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(18,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(18,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(18,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(18,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
18,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(18,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(18,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(18,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(18,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(18,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(18,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2)+J(18,15)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2)+J(18,16)*c
os(2*pi*fc*t+14*2*pi*fm.*t+14*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(18,2)^2).*cos(2*pi*fc.*t)/2+(J(18,3)^2)*cos(2*p

i*fc*t+2*pi*fm.*t+pi/2)+(J(18,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(18,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
8,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(18,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(18,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(18,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(18,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(18,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(18,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(18,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(18,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2)+(J(18,15)^2)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2)+(J(18,16
)^2)*cos(2*pi*fc*t+14*2*pi*fm.*t+14*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=(Vc*J(18,2));
Jm1=(Vc*J(18,3));
Jm2=(Vc*J(18,4));
Jm3=(Vc*J(18,5));
Jm4=(Vc*J(18,6));
Jm5=(Vc*J(18,7));
Jm6=(Vc*J(18,8));
Jm7=(Vc*J(18,9));
Jm8=(Vc*J(18,10));
Jm9=(Vc*J(18,11));
Jm10=(Vc*J(18,12));
Jm11=(Vc*J(18,13));
Jm12=(Vc*J(18,14));
Jm13=(Vc*J(18,15));
Jm14=(Vc*J(18,16));
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));

Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(18,2));
set(handles.text102,'String',Vc*J(18,3));
set(handles.text103,'String',Vc*J(18,4));
set(handles.text104,'String',Vc*J(18,5));
set(handles.text105,'String',Vc*J(18,6));
set(handles.text106,'String',Vc*J(18,7));
set(handles.text107,'String',Vc*J(18,8));
set(handles.text108,'String',Vc*J(18,9));
set(handles.text109,'String',Vc*J(18,10));
set(handles.text110,'String',Vc*J(18,11));
set(handles.text111,'String',Vc*J(18,12));
set(handles.text112,'String',Vc*J(18,13));
set(handles.text113,'String',Vc*J(18,14));
set(handles.text114,'String',Vc*J(18,15));
set(handles.text115,'String',Vc*J(18,16));
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(18,2))^2/2);

set(handles.text67,'String',(Vc*J(18,3))^2);
set(handles.text68,'String',(Vc*J(18,4))^2);
set(handles.text69,'String',(Vc*J(18,5))^2);
set(handles.text70,'String',(Vc*J(18,6))^2);
set(handles.text71,'String',(Vc*J(18,7))^2);
set(handles.text72,'String',(Vc*J(18,8))^2);
set(handles.text73,'String',(Vc*J(18,9))^2);
set(handles.text74,'String',(Vc*J(18,10))^2);
set(handles.text75,'String',(Vc*J(18,11))^2);
set(handles.text76,'String',(Vc*J(18,12))^2);
set(handles.text77,'String',(Vc*J(18,13))^2);
set(handles.text78,'String',(Vc*J(18,14))^2);
set(handles.text79,'String',(Vc*J(18,15))^2);
set(handles.text80,'String',(Vc*J(18,16))^2);
end
end
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.edit4,'String',beta);
set(handles.text25,'String',n);
set(handles.text26,'String',2*n*fm);
set(handles.text27,'String',beta*fm);
set(handles.periodo,'String',P);
guidata(hObject, handles);
% --- Executes during object creation, after setting all
properties.
function slider1_CreateFcn(hObject, eventdata, handles)
% hObject
handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: slider controls usually have a light gray background,
change
%
'usewhitebg' to 0 to use default. See ISPC and
COMPUTER.
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor',[.9 .9 .9]);
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit1_Callback(hObject, eventdata, handles)


% hObject
handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as
text
%
str2double(get(hObject,'String')) returns contents
of edit1 as a double
% --- Executes during object creation, after setting all
properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit2_Callback(hObject, eventdata, handles)


% hObject
handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit2 as
text

%
str2double(get(hObject,'String')) returns contents
of edit2 as a double
% --- Executes during object creation, after setting all
properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit3_Callback(hObject, eventdata, handles)


% hObject
handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit3 as
text
%
str2double(get(hObject,'String')) returns contents
of edit3 as a double
% --- Executes during object creation, after setting all
properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit23_Callback(hObject, eventdata, handles)


% hObject
handle to edit23 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit23 as
text
%
str2double(get(hObject,'String')) returns contents
of edit23 as a double
% --- Executes during object creation, after setting all
properties.
function edit23_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit23 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit5_Callback(hObject, eventdata, handles)


% hObject
handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit5 as
text
%
str2double(get(hObject,'String')) returns contents
of edit5 as a double
% --- Executes during object creation, after setting all
properties.
function edit5_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit5 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit6_Callback(hObject, eventdata, handles)


% hObject
handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit3 as
text

%
str2double(get(hObject,'String')) returns contents
of edit3 as a double
% --- Executes during object creation, after setting all
properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end

function edit4_Callback(hObject, eventdata, handles)


% hObject
handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'String') returns contents of edit4 as
text
%
str2double(get(hObject,'String')) returns contents
of edit4 as a double
set(handles.slider1,'value',str2num(get(hObject,'string')))
% --- Executes during object creation, after setting all
properties.
function edit4_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit4 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called

% Hint: edit controls usually have a white background on


Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end
% --- Executes on button 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)
global Vc M J Mw Vm fm fc beta Desv n BW N Fs P val
value = get(hObject,'value');
%PROGRAMACION PARA CONVERTIR LOS STRING QUE EN ESTE CASO SON
LOS PARAMETROS
%DE ENTRADA EN NUMEROS REALES LISTOS PARA SER OPERADOS.
beta=get(handles.slider1,'Value');
N=str2double(get(handles.edit6,'String'));
Fs=str2double(get(handles.edit7,'String'));
Vm=str2double(get(handles.edit1,'String'));
fm=str2double(get(handles.edit2,'String'));
fc=str2double(get(handles.edit3,'String'));
Vc=str2double(get(handles.edit5,'String'));
P=get(handles.slider2,'Value');
%PARAMETROS POR DEFECTO PARA INICIALIZAR EL PROGRAMA.
Ts=1/Fs; %Periodo
t=(0:N)/N; %Vector del tiempo
f=(-N/2:N/2);
tm=0:(P/fm)/N:P/fm;
tc=0:(P/fc)/N:P/fc;
Desv=fm*beta;
%ECUACION DE LA SEAL MODULADORA EN FUNCION DEL TIEMPO Y DE
LA FRECUENCIA

Vm_t=Vm*sin(2*pi*fm*tm);
%Seal Moduladora
Vm_t1=Vm*sin(2*pi*fm*t);
%Seal Moduladora
Vm_w=abs(fftshift(fft(Vm_t1,length(f))))/length(f);
%ECUACION DE LA SEAL PORTADORA EN FUNCION DEL TIEMPO Y DE LA
FRECUENCIA
Vc_t=Vc*sin(2*pi*fc*tc); %Seal Portadora
Vc_t1=Vc*sin(2*pi*fc*t); %Seal Portadora
Vc_w=abs(fftshift(fft(Vc_t1,length(f))))/length(f);
%ECUACION DE LA SEAL MODULADA EN FUNCION DEL TIEMPO Y DE LA
FRECUENCIA
m_t=Vc*sin(2*pi*fc+beta*cos(2*pi*fm*t));
m_w=abs(fftshift(fft(m_t,length(f))))/length(f);
%EL PROGRAMA SELECCIONARA UNO DE ESTOS CASOS DEACUERDO A LAS
OPCIONES
%TOMADAS DEL POPUPMENU
switch val
case 1;
errordlg('Seleccionar Seal','Error')
case 2;
subplot(handles.axes1),plot(tm,Vm_t)
title('Seal Moduladora en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,Vm_w)
title('Seal Moduladora en el dominio de la
Frecuencia','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
A=0;
subplot(handles.axes3),plot(f,A)
title('IMAGEN NO DISPONIBLE','fontsize',12)
Jm0=0;
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;

Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',0);
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));

Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',0);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
beta=0;
n=0;
BW=0;
Df=0;
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.periodo,'String',P);
set(handles.edit4,'String',0);
set(handles.text25,'String',0);
set(handles.text26,'String',0);
set(handles.text27,'String',0);
guidata(hObject, handles);
case 3;
subplot(handles.axes1),plot(tc,Vc_t)
title('Seal Portadora en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo'),ylabel('Amplitud (Volts)')
subplot(handles.axes2),plot(f,Vc_w)
title('Seal Portadora en el dominio de la
Frecuencia','fontsize',12)

grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud


(Volts)')
A=0;
subplot(handles.axes3),plot(f,A)
title('IMAGEN NO DISPONIBLE','fontsize',12)
Jm0=0;
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',0);
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);

set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',0);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
beta=0;
n=0;
BW=0;
Df=0;
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.edit4,'String',0);

set(handles.text25,'String',0);
set(handles.text26,'String',0);
set(handles.text27,'String',0);
set(handles.periodo,'String',P);
guidata(hObject, handles);
case 4;
beta=get(handles.slider1,'Value');
n=str2double(get(handles.text25,'String'));
J=[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0.25 0.98 0.12 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0.5 0.94 0.24 0.03 0 0 0 0 0 0 0 0 0 0 0 0 ;
1 0.77 0.44 0.11 0.02 0 0 0 0 0 0 0 0 0 0 0 ;
1.5 0.51 0.56 0.23 0.06 0.01 0 0 0 0 0 0 0 0 0 0 ;
2 0.22 0.58 0.35 0.13 0.03 0 0 0 0 0 0 0 0 0 0 ;
2.4 0 0.52 0.43 0.2 0.06 0.02 0 0 0 0 0 0 0 0 0;
2.5 -0.05 0.50 0.45 0.22 0.07 0.02 0.01 0 0 0 0 0 0 0 0 ;
3 -0.25 0.34 0.49 0.31 0.13 0.04 0.01 0 0 0 0 0 0 0 0 ;
4 -0.4 -0.07 0.36 0.43 0.28 0.13 0.05 0.02 0 0 0 0 0 0 0 ;
5 -0.18 -0.33 0.05 0.36 0.39 0.26 0.13 0.05 0.02 0 0 0 0 0
0 ;
5.45 0 -0.34 -0.12 0.23 0.4 0.32 0.19 0.09 0.03 0.01 0 0 0
0 0;
6 0.15 -0.28 -0.24 0.11 0.36 0.36 0.25 0.13 0.06 0.02 0 0
0 0 0 ;
7 0.3 0 -0.3 -0.17 0.16 0.36 0.34 0.23 0.13 0.06 0.02 0 0
0 0 ;
8 0.17 0.23 -0.11 -0.29 -0.1 0.19 0.34 0.32 0.22 0.13 0.06
0.03 0 0 0 ;
8.65 0 0.27 0.06 -0.24 -0.23 0.03 0.26 0.34 0.28 0.18 0.1
0.05 0.02 0 0;
9 -0.09 0.24 0.14 -0.18 -0.27 -0.06 0.2 0.33 0.3 0.21 0.12
0.06 0.03 0.01 0 ;
10 -0.25 0.04 0.25 0.06 -0.22 -0.23 -0.01 0.22 0.31 0.29
0.2 0.12 0.06 0.03 0.01];
if (beta>=0&&beta<0.25)
n=0;
M0=Vc*(J(1,2)*cos(2*pi*fc.*tc));
M=Vc*(J(1,2)*cos(2*pi*fc.*t));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(1,2)^2)/2*cos(2*pi*fc.*t));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)

grid on,xlabel('Tiempo (s)'),ylabel('Amplitud


(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(1,2);
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(1,2));
set(handles.text102,'String',0);

set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(1,2))^2/2);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);

elseif (beta>=0.25&&beta<0.5)
n=1;
M0=Vc*(J(2,2).*cos(2*pi*fc.*tc)+J(2,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2));
M=Vc*(J(2,2).*cos(2*pi*fc.*t)+J(2,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(2,2)^2).*cos(2*pi*fc.*t)/2+(J(2,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(2,2);
Jm1=Vc*J(2,3);
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit6,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));

Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(2,2));
set(handles.text102,'String',Vc*J(2,3));
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));

set(handles.text66,'String',(Vc*J(2,2))^2/2);
set(handles.text67,'String',(Vc*J(2,3))^2);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=0.5&&beta<1)
n=2;
M0=Vc*(J(3,2).*cos(2*pi*fc.*tc)+J(3,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(3,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2));
M=Vc*(J(3,2).*cos(2*pi*fc.*t)+J(3,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(3,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(3,2)^2).*cos(2*pi*fc.*t)/2+(J(3,3))^2*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(3,4))^2*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(3,2);
Jm1=Vc*J(3,3);

Jm2=Vc*J(3,4);
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(3,2));
set(handles.text102,'String',Vc*J(3,3));
set(handles.text103,'String',Vc*J(3,4));
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(3,2))^2/2);
set(handles.text67,'String',(Vc*J(3,3))^2);
set(handles.text68,'String',(Vc*J(3,4))^2);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=1&&beta<1.5)
n=3;
M0=Vc*(J(4,2).*cos(2*pi*fc.*tc)+J(4,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(4,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(4,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2));
M=Vc*(J(4,2).*cos(2*pi*fc.*t)+J(4,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(4,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(4,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=Vc^2*((J(4,2)^2).*cos(2*pi*fc.*t)/2+(J(4,3)^2)*cos(2*pi*fc

*t+2*pi*fm.*t+pi/2)+(J(4,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*p
i/2)+(J(4,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(4,2);
Jm1=Vc*J(4,3);
Jm2=Vc*J(4,4);
Jm3=Vc*J(4,5);
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));

Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(4,2));
set(handles.text102,'String',Vc*J(4,3));
set(handles.text103,'String',Vc*J(4,4));
set(handles.text104,'String',Vc*J(4,5));
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(4,2))^2/2);
set(handles.text67,'String',(Vc*J(4,3))^2);
set(handles.text68,'String',(Vc*J(4,4))^2);
set(handles.text69,'String',(Vc*J(4,5))^2);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);

set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=1.5&&beta<2)
n=4;
M0=Vc*(J(5,2)*cos(2*pi*fc*tc)+J(5,3)*cos(2*pi*fc*tc+2*pi*fm*t
m+pi/2)+J(5,4)*cos(2*pi*fc*tc+2*2*pi*fm*tm+2*pi/2)+J(5,5)*cos
(2*pi*fc*tc+3*2*pi*fm*tm+3*pi/2)+J(5,6)*cos(2*pi*fc*tc+4*2*pi
*fm*tm+4*pi/2));
M=Vc*(J(5,2)*cos(2*pi*fc*t)+J(5,3)*cos(2*pi*fc*t+2*pi*fm*t+pi
/2)+J(5,4)*cos(2*pi*fc*t+2*2*pi*fm*t+2*pi/2)+J(5,5)*cos(2*pi*
fc*t+3*2*pi*fm*t+3*pi/2)+J(5,6)*cos(2*pi*fc*t+4*2*pi*fm*t+4*p
i/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(5,2)^2)*cos(2*pi*fc*t)/2+(J(5,3)^2)*cos(2*pi*fc
*t+2*pi*fm*t+pi/2)+(J(5,4)^2)*cos(2*pi*fc*t+2*2*pi*fm*t+2*pi/
2)+(J(5,5)^2)*cos(2*pi*fc*t+3*2*pi*fm*t+3*pi/2)+(J(5,6)^2)*co
s(2*pi*fc*t+4*2*pi*fm*t+4*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(5,2);
Jm1=Vc*J(5,3);
Jm2=Vc*J(5,4);
Jm3=Vc*J(5,5);
Jm4=Vc*J(5,6);
Jm5=0;
Jm6=0;

Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(5,2));
set(handles.text102,'String',Vc*J(5,3));
set(handles.text103,'String',Vc*J(5,4));
set(handles.text104,'String',Vc*J(5,5));
set(handles.text105,'String',Vc*J(5,6));
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));

Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(5,2))^2/2);
set(handles.text67,'String',(Vc*J(5,3))^2);
set(handles.text68,'String',(Vc*J(5,4))^2);
set(handles.text69,'String',(Vc*J(5,5))^2);
set(handles.text70,'String',(Vc*J(5,6))^2);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2&&beta<2.4)
n=4;
M0=Vc*(J(6,2).*cos(2*pi*fc.*tc)+J(6,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(6,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(6,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(6,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2));
M=Vc*(J(6,2).*cos(2*pi*fc.*t)+J(6,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(6,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(6,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(6,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(6,2)^2).*cos(2*pi*fc.*t)/2+(J(6,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(6,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(6,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(6,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')

title('Seal Modulada en el dominio del


Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(6,2);
Jm1=Vc*J(6,3);
Jm2=Vc*J(6,4);
Jm3=Vc*J(6,5);
Jm4=Vc*J(6,6);
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));

set(handles.text101,'String',Vc*J(6,2));
set(handles.text102,'String',Vc*J(6,3));
set(handles.text103,'String',Vc*J(6,4));
set(handles.text104,'String',Vc*J(6,5));
set(handles.text105,'String',Vc*J(6,6));
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(6,2))^2/2);
set(handles.text67,'String',(Vc*J(6,3))^2);
set(handles.text68,'String',(Vc*J(6,4))^2);
set(handles.text69,'String',(Vc*J(6,5))^2);
set(handles.text70,'String',(Vc*J(6,6))^2);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);

set(handles.text80,'String',0);
elseif (beta>=2.4&&beta<2.5)
n=5;
M0=Vc*(J(7,2).*cos(2*pi*fc.*tc)+J(7,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(7,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(7,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(7,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(7,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2));
M=Vc*(J(7,2).*cos(2*pi*fc.*t)+J(7,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(7,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(7,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(7,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(7,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(7,2)^2).*cos(2*pi*fc.*t)/2+(J(7,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(7,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(7,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(7,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(7,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(7,2);
Jm1=Vc*J(7,3);
Jm2=Vc*J(7,4);
Jm3=Vc*J(7,5);
Jm4=Vc*J(7,6);
Jm5=Vc*J(7,7);
Jm6=0;
Jm7=0;
Jm8=0;

Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(7,2));
set(handles.text102,'String',Vc*J(7,3));
set(handles.text103,'String',Vc*J(7,4));
set(handles.text104,'String',Vc*J(7,5));
set(handles.text105,'String',Vc*J(7,6));
set(handles.text106,'String',Vc*J(7,7));
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));

Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(7,2))^2/2);
set(handles.text67,'String',(Vc*J(7,3))^2);
set(handles.text68,'String',(Vc*J(7,4))^2);
set(handles.text69,'String',(Vc*J(7,5))^2);
set(handles.text70,'String',(Vc*J(7,6))^2);
set(handles.text71,'String',(Vc*J(7,7))^2);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2.5&&beta<3)
n=6;
M0=Vc*(J(8,2).*cos(2*pi*fc.*tc)+J(8,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(8,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(8,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(8,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(8,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2)+J(8,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2));
M=Vc*(J(8,2).*cos(2*pi*fc.*t)+J(8,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(8,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(8,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(8,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(8,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(8,8)*c
os(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(8,2)^2).*cos(2*pi*fc.*t)/2+(J(8,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(8,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(8,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(8,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(8,7)^2)*cos(2*pi*fc*

t+5*2*pi*fm.*t+5*pi/2)+(J(8,8)^2)*cos(2*pi*fc*t+6*2*pi*fm.*t+
6*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(8,2);
Jm1=Vc*J(8,3);
Jm2=Vc*J(8,4);
Jm3=Vc*J(8,5);
Jm4=Vc*J(8,6);
Jm5=Vc*J(8,7);
Jm6=Vc*J(8,8);
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));

Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(8,2));
set(handles.text102,'String',Vc*J(8,3));
set(handles.text103,'String',Vc*J(8,4));
set(handles.text104,'String',Vc*J(8,5));
set(handles.text105,'String',Vc*J(8,6));
set(handles.text106,'String',Vc*J(8,7));
set(handles.text107,'String',Vc*J(8,8));
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(8,2))^2/2);
set(handles.text67,'String',(Vc*J(8,3))^2);
set(handles.text68,'String',(Vc*J(8,4))^2);
set(handles.text69,'String',(Vc*J(8,5))^2);
set(handles.text70,'String',(Vc*J(8,6))^2);
set(handles.text71,'String',(Vc*J(8,7))^2);
set(handles.text72,'String',(Vc*J(8,8))^2);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);

set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=3&&beta<4)
n=6;
M0=Vc*(J(9,2).*cos(2*pi*fc.*tc)+J(9,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(9,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(9,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(9,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(9,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2)+J(9,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2));
M=Vc*(J(9,2).*cos(2*pi*fc.*t)+J(9,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(9,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(9,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(9,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(9,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(9,8)*c
os(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(9,2)^2).*cos(2*pi*fc.*t)/2+(J(9,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(9,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(9,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(9,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(9,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2)+(J(9,8)^2)*cos(2*pi*fc*t+6*2*pi*fm.*t+
6*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(9,2);
Jm1=Vc*J(9,3);
Jm2=Vc*J(9,4);

Jm3=Vc*J(9,5);
Jm4=Vc*J(9,6);
Jm5=Vc*J(9,7);
Jm6=Vc*J(9,8);
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(9,2));
set(handles.text102,'String',Vc*J(9,3));
set(handles.text103,'String',Vc*J(9,4));
set(handles.text104,'String',Vc*J(9,5));
set(handles.text105,'String',Vc*J(9,6));
set(handles.text106,'String',Vc*J(9,7));
set(handles.text107,'String',Vc*J(9,8));
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));

Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(9,2))^2/2);
set(handles.text67,'String',(Vc*J(9,3))^2);
set(handles.text68,'String',(Vc*J(9,4))^2);
set(handles.text69,'String',(Vc*J(9,5))^2);
set(handles.text70,'String',(Vc*J(9,6))^2);
set(handles.text71,'String',(Vc*J(9,7))^2);
set(handles.text72,'String',(Vc*J(9,8))^2);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=4&&beta<5)
n=7;
M0=Vc*(J(10,2).*cos(2*pi*fc.*tc)+J(10,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(10,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
0,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(10,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(10,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(10,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(10,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2));
M=Vc*(J(10,2).*cos(2*pi*fc.*t)+J(10,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(10,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(10,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(10,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(10,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(

10,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(10,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(10,2)^2).*cos(2*pi*fc.*t)/2+(J(10,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(10,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(10,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
0,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(10,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(10,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(10,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
);
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(10,2);
Jm1=Vc*J(10,3);
Jm2=Vc*J(10,4);
Jm3=Vc*J(10,5);
Jm4=Vc*J(10,6);
Jm5=Vc*J(10,7);
Jm6=Vc*J(10,8);
Jm7=Vc*J(10,9);
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));

Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(10,2));
set(handles.text102,'String',Vc*J(10,3));
set(handles.text103,'String',Vc*J(10,4));
set(handles.text104,'String',Vc*J(10,5));
set(handles.text105,'String',Vc*J(10,6));
set(handles.text106,'String',Vc*J(10,7));
set(handles.text107,'String',Vc*J(10,8));
set(handles.text108,'String',Vc*J(10,9));
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(10,2))^2/2);

set(handles.text67,'String',(Vc*J(10,3))^2);
set(handles.text68,'String',(Vc*J(10,4))^2);
set(handles.text69,'String',(Vc*J(10,5))^2);
set(handles.text70,'String',(Vc*J(10,6))^2);
set(handles.text71,'String',(Vc*J(10,7))^2);
set(handles.text72,'String',(Vc*J(10,8))^2);
set(handles.text73,'String',(Vc*J(10,9))^2);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=5&&beta<5.45)
n=8;
M0=Vc*(J(11,2).*cos(2*pi*fc.*tc)+J(11,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(11,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
1,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(11,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(11,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(11,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(11,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(11,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2));
M=Vc*(J(11,2).*cos(2*pi*fc.*t)+J(11,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(11,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(11,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(11,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(11,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
11,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(11,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(11,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(11,2)^2).*cos(2*pi*fc.*t)/2+(J(11,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(11,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(11,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
1,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(11,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(11,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(11,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(11,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)

grid on,xlabel('Tiempo (s)'),ylabel('Amplitud


(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(11,2);
Jm1=Vc*J(11,3);
Jm2=Vc*J(11,4);
Jm3=Vc*J(11,5);
Jm4=Vc*J(11,6);
Jm5=Vc*J(11,7);
Jm6=Vc*J(11,8);
Jm7=Vc*J(11,9);
Jm8=Vc*J(11,10);
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(11,2));
set(handles.text102,'String',Vc*J(11,3));

set(handles.text103,'String',Vc*J(11,4));
set(handles.text104,'String',Vc*J(11,5));
set(handles.text105,'String',Vc*J(11,6));
set(handles.text106,'String',Vc*J(11,7));
set(handles.text107,'String',Vc*J(11,8));
set(handles.text108,'String',Vc*J(11,9));
set(handles.text109,'String',Vc*J(11,10));
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(11,2))^2/2);
set(handles.text67,'String',(Vc*J(11,3))^2);
set(handles.text68,'String',(Vc*J(11,4))^2);
set(handles.text69,'String',(Vc*J(11,5))^2);
set(handles.text70,'String',(Vc*J(11,6))^2);
set(handles.text71,'String',(Vc*J(11,7))^2);
set(handles.text72,'String',(Vc*J(11,8))^2);
set(handles.text73,'String',(Vc*J(11,9))^2);
set(handles.text74,'String',(Vc*J(11,10))^2);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);

elseif (beta>=5.45&&beta<6)
n=9;
M0=Vc*(J(12,2).*cos(2*pi*fc.*tc)+J(12,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(12,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
2,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(12,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(12,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(12,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(12,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(12,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(12,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2));
M=Vc*(J(12,2).*cos(2*pi*fc.*t)+J(12,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(12,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(12,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(12,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(12,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
12,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(12,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(12,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(12,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(12,2)^2).*cos(2*pi*fc.*t)/2+(J(12,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(12,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(12,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
2,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(12,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(12,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(12,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(12,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(12,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(12,2);
Jm1=Vc*J(12,3);

Jm2=Vc*J(12,4);
Jm3=Vc*J(12,5);
Jm4=Vc*J(12,6);
Jm5=Vc*J(12,7);
Jm6=Vc*J(12,8);
Jm7=Vc*J(12,9);
Jm8=Vc*J(12,10);
Jm9=Vc*J(12,11);
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(12,2));
set(handles.text102,'String',Vc*J(12,3));
set(handles.text103,'String',Vc*J(12,4));
set(handles.text104,'String',Vc*J(12,5));
set(handles.text105,'String',Vc*J(12,6));
set(handles.text106,'String',Vc*J(12,7));
set(handles.text107,'String',Vc*J(12,8));
set(handles.text108,'String',Vc*J(12,9));
set(handles.text109,'String',Vc*J(12,10));
set(handles.text110,'String',Vc*J(12,11));
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(12,2))^2/2);
set(handles.text67,'String',(Vc*J(12,3))^2);
set(handles.text68,'String',(Vc*J(12,4))^2);
set(handles.text69,'String',(Vc*J(12,5))^2);
set(handles.text70,'String',(Vc*J(12,6))^2);
set(handles.text71,'String',(Vc*J(12,7))^2);
set(handles.text72,'String',(Vc*J(12,8))^2);
set(handles.text73,'String',(Vc*J(12,9))^2);
set(handles.text74,'String',(Vc*J(12,10))^2);
set(handles.text75,'String',(Vc*J(12,11))^2);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=6&&beta<7)
n=9;
M0=Vc*(J(13,2).*cos(2*pi*fc.*tc)+J(13,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(13,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
3,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(13,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(13,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(13,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(13,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(13,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(13,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2));
M=Vc*(J(13,2).*cos(2*pi*fc.*t)+J(13,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(13,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(13,5)*c

os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(13,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(13,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
13,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(13,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(13,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(13,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(13,2)^2).*cos(2*pi*fc.*t)/2+(J(13,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(13,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(13,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
3,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(13,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(13,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(13,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(13,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(13,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(13,2);
Jm1=Vc*J(13,3);
Jm2=Vc*J(13,4);
Jm3=Vc*J(13,5);
Jm4=Vc*J(13,6);
Jm5=Vc*J(13,7);
Jm6=Vc*J(13,8);
Jm7=Vc*J(13,9);
Jm8=Vc*J(13,10);
Jm9=Vc*J(13,11);
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(13,2));
set(handles.text102,'String',Vc*J(13,3));
set(handles.text103,'String',Vc*J(13,4));
set(handles.text104,'String',Vc*J(13,5));
set(handles.text105,'String',Vc*J(13,6));
set(handles.text106,'String',Vc*J(13,7));
set(handles.text107,'String',Vc*J(13,8));
set(handles.text108,'String',Vc*J(13,9));
set(handles.text109,'String',Vc*J(13,10));
set(handles.text110,'String',Vc*J(13,11));
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));

Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(13,2))^2/2);
set(handles.text67,'String',(Vc*J(13,3))^2);
set(handles.text68,'String',(Vc*J(13,4))^2);
set(handles.text69,'String',(Vc*J(13,5))^2);
set(handles.text70,'String',(Vc*J(13,6))^2);
set(handles.text71,'String',(Vc*J(13,7))^2);
set(handles.text72,'String',(Vc*J(13,8))^2);
set(handles.text73,'String',(Vc*J(13,9))^2);
set(handles.text74,'String',(Vc*J(13,10))^2);
set(handles.text75,'String',(Vc*J(13,11))^2);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=7&&beta<8)
n=10;
M0=Vc*(J(14,2).*cos(2*pi*fc.*tc)+J(14,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(14,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
4,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(14,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(14,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(14,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(14,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(14,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(14,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(14,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2));
M=Vc*(J(14,2).*cos(2*pi*fc.*t)+J(14,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(14,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(14,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(14,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(14,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
14,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(14,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(14,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(14,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(14,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(14,2)^2).*cos(2*pi*fc.*t)/2+(J(14,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(14,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(14,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
4,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(14,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(14,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(14,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)

+(J(14,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(14,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(14,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(14,2);
Jm1=Vc*J(14,3);
Jm2=Vc*J(14,4);
Jm3=Vc*J(14,5);
Jm4=Vc*J(14,6);
Jm5=Vc*J(14,7);
Jm6=Vc*J(14,8);
Jm7=Vc*J(14,9);
Jm8=Vc*J(14,10);
Jm9=Vc*J(14,11);
Jm10=Vc*J(14,12);
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));

Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(14,2));
set(handles.text102,'String',Vc*J(14,3));
set(handles.text103,'String',Vc*J(14,4));
set(handles.text104,'String',Vc*J(14,5));
set(handles.text105,'String',Vc*J(14,6));
set(handles.text106,'String',Vc*J(14,7));
set(handles.text107,'String',Vc*J(14,8));
set(handles.text108,'String',Vc*J(14,9));
set(handles.text109,'String',Vc*J(14,10));
set(handles.text110,'String',Vc*J(14,11));
set(handles.text111,'String',Vc*J(14,12));
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(14,2))^2/2);
set(handles.text67,'String',(Vc*J(14,3))^2);
set(handles.text68,'String',(Vc*J(14,4))^2);
set(handles.text69,'String',(Vc*J(14,5))^2);
set(handles.text70,'String',(Vc*J(14,6))^2);
set(handles.text71,'String',(Vc*J(14,7))^2);
set(handles.text72,'String',(Vc*J(14,8))^2);
set(handles.text73,'String',(Vc*J(14,9))^2);
set(handles.text74,'String',(Vc*J(14,10))^2);

set(handles.text75,'String',(Vc*J(14,11))^2);
set(handles.text76,'String',(Vc*J(14,12))^2);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=8&&beta<8.65)
n=11;
M0=Vc*(J(15,2).*cos(2*pi*fc.*tc)+J(15,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(15,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
5,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(15,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(15,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(15,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(15,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(15,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(15,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(15,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(15
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2));
M=Vc*(J(15,2).*cos(2*pi*fc.*t)+J(15,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(15,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(15,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(15,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(15,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
15,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(15,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(15,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(15,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(15,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(15,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(15,2)^2).*cos(2*pi*fc.*t)/2+(J(15,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(15,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(15,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
5,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(15,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(15,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(15,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(15,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(15,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(15,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(15,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')

subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(15,2);
Jm1=Vc*J(15,3);
Jm2=Vc*J(15,4);
Jm3=Vc*J(15,5);
Jm4=Vc*J(15,6);
Jm5=Vc*J(15,7);
Jm6=Vc*J(15,8);
Jm7=Vc*J(15,9);
Jm8=Vc*J(15,10);
Jm9=Vc*J(15,11);
Jm10=Vc*J(15,12);
Jm11=Vc*J(15,13);
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(15,2));
set(handles.text102,'String',Vc*J(15,3));
set(handles.text103,'String',Vc*J(15,4));
set(handles.text104,'String',Vc*J(15,5));

set(handles.text105,'String',Vc*J(15,6));
set(handles.text106,'String',Vc*J(15,7));
set(handles.text107,'String',Vc*J(15,8));
set(handles.text108,'String',Vc*J(15,9));
set(handles.text109,'String',Vc*J(15,10));
set(handles.text110,'String',Vc*J(15,11));
set(handles.text111,'String',Vc*J(15,12));
set(handles.text112,'String',Vc*J(15,13));
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(15,2))^2/2);
set(handles.text67,'String',(Vc*J(15,3))^2);
set(handles.text68,'String',(Vc*J(15,4))^2);
set(handles.text69,'String',(Vc*J(15,5))^2);
set(handles.text70,'String',(Vc*J(15,6))^2);
set(handles.text71,'String',(Vc*J(15,7))^2);
set(handles.text72,'String',(Vc*J(15,8))^2);
set(handles.text73,'String',(Vc*J(15,9))^2);
set(handles.text74,'String',(Vc*J(15,10))^2);
set(handles.text75,'String',(Vc*J(15,11))^2);
set(handles.text76,'String',(Vc*J(15,12))^2);
set(handles.text77,'String',(Vc*J(15,13))^2);
set(handles.text78,'String', 0);
set(handles.text79,'String', 0);
set(handles.text80,'String', 0);
elseif (beta>=8.64&&beta<9)
n=12;

M0=Vc*(J(16,2).*cos(2*pi*fc.*tc)+J(16,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(16,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
6,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(16,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(16,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(16,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(16,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(16,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(16,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(16,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(16
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(16,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2));
M=Vc*(J(16,2).*cos(2*pi*fc.*t)+J(16,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(16,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(16,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(16,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(16,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
16,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(16,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(16,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(16,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(16,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(16,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(16,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(16,2)^2).*cos(2*pi*fc.*t)/2+(J(16,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(16,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(16,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
6,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(16,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(16,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(16,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(16,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(16,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(16,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(16,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(16,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)

title('Seal Modulada (Watts vs


Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(16,2);
Jm1=Vc*J(16,3);
Jm2=Vc*J(16,4);
Jm3=Vc*J(16,5);
Jm4=Vc*J(16,6);
Jm5=Vc*J(16,7);
Jm6=Vc*J(16,8);
Jm7=Vc*J(16,9);
Jm8=Vc*J(16,10);
Jm9=Vc*J(16,11);
Jm10=Vc*J(16,12);
Jm11=Vc*J(16,13);
Jm10=Vc*J(16,14);
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(16,2));
set(handles.text102,'String',Vc*J(16,3));
set(handles.text103,'String',Vc*J(16,4));
set(handles.text104,'String',Vc*J(16,5));
set(handles.text105,'String',Vc*J(16,6));
set(handles.text106,'String',Vc*J(16,7));
set(handles.text107,'String',Vc*J(16,8));
set(handles.text108,'String',Vc*J(16,9));
set(handles.text109,'String',Vc*J(16,10));
set(handles.text110,'String',Vc*J(16,11));

set(handles.text111,'String',Vc*J(16,12));
set(handles.text112,'String',Vc*J(16,13));
set(handles.text113,'String',Vc*J(16,14));
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(16,2))^2/2);
set(handles.text67,'String',(Vc*J(16,3))^2);
set(handles.text68,'String',(Vc*J(16,4))^2);
set(handles.text69,'String',(Vc*J(16,5))^2);
set(handles.text70,'String',(Vc*J(16,6))^2);
set(handles.text71,'String',(Vc*J(16,7))^2);
set(handles.text72,'String',(Vc*J(16,8))^2);
set(handles.text73,'String',(Vc*J(16,9))^2);
set(handles.text74,'String',(Vc*J(16,10))^2);
set(handles.text75,'String',(Vc*J(16,11))^2);
set(handles.text76,'String',(Vc*J(16,12))^2);
set(handles.text77,'String',(Vc*J(16,13))^2);
set(handles.text78,'String',(Vc*J(16,14))^2);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=9&&beta<10)
n=13;
M0=Vc*(J(17,2).*cos(2*pi*fc.*tc)+J(17,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(17,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
7,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(17,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(17,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(17,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(17,9

)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(17,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(17,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(17,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(17
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(17,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2)+J(17,15)*cos(2*pi*fc*tc+13*2*p
i*fm.*tm+13*pi/2));
M=Vc*(J(17,2).*cos(2*pi*fc.*t)+J(17,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(17,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(17,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(17,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(17,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
17,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(17,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(17,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(17,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(17,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(17,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(17,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2)+J(17,15)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(17,2)^2).*cos(2*pi*fc.*t)/2+(J(17,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(17,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(17,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
7,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(17,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(17,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(17,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(17,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(17,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(17,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(17,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(17,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2)+(J(17,15)^2)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(17,2);

Jm1=Vc*J(17,3);
Jm2=Vc*J(17,4);
Jm3=Vc*J(17,5);
Jm4=Vc*J(17,6);
Jm5=Vc*J(17,7);
Jm6=Vc*J(17,8);
Jm7=Vc*J(17,9);
Jm8=Vc*J(17,10);
Jm9=Vc*J(17,11);
Jm10=Vc*J(17,12);
Jm11=Vc*J(17,13);
Jm10=Vc*J(17,14);
Jm13=Vc*J(17,15);
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(17,2));
set(handles.text102,'String',Vc*J(17,3));
set(handles.text103,'String',Vc*J(17,4));
set(handles.text104,'String',Vc*J(17,5));
set(handles.text105,'String',Vc*J(17,6));
set(handles.text106,'String',Vc*J(17,7));
set(handles.text107,'String',Vc*J(17,8));
set(handles.text108,'String',Vc*J(17,9));
set(handles.text109,'String',Vc*J(17,10));
set(handles.text110,'String',Vc*J(17,11));
set(handles.text111,'String',Vc*J(17,12));
set(handles.text112,'String',Vc*J(17,13));
set(handles.text113,'String',Vc*J(17,14));
set(handles.text114,'String',Vc*J(17,15));
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(17,2))^2/2);
set(handles.text67,'String',(Vc*J(17,3))^2);
set(handles.text68,'String',(Vc*J(17,4))^2);
set(handles.text69,'String',(Vc*J(17,5))^2);
set(handles.text70,'String',(Vc*J(17,6))^2);
set(handles.text71,'String',(Vc*J(17,7))^2);
set(handles.text72,'String',(Vc*J(17,8))^2);
set(handles.text73,'String',(Vc*J(17,9))^2);
set(handles.text74,'String',(Vc*J(17,10))^2);
set(handles.text75,'String',(Vc*J(17,11))^2);
set(handles.text76,'String',(Vc*J(17,12))^2);
set(handles.text77,'String',(Vc*J(17,13))^2);
set(handles.text78,'String',(Vc*J(17,14))^2);
set(handles.text79,'String',(Vc*J(17,15))^2);
set(handles.text80,'String',0);
else (beta==10)
n=14;
M0=Vc*(J(18,2).*cos(2*pi*fc.*tc)+J(18,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(18,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
8,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(18,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(18,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(18,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(18,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(18,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(18,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(18,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(18
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(18,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2)+J(18,15)*cos(2*pi*fc*tc+13*2*p

i*fm.*tm+13*pi/2)+J(18,16)*cos(2*pi*fc*tc+14*2*pi*fm.*tm+14*p
i/2));
M=Vc*(J(18,2).*cos(2*pi*fc.*t)+J(18,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(18,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(18,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(18,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(18,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
18,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(18,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(18,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(18,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(18,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(18,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(18,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2)+J(18,15)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2)+J(18,16)*c
os(2*pi*fc*t+14*2*pi*fm.*t+14*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(18,2)^2).*cos(2*pi*fc.*t)/2+(J(18,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(18,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(18,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
8,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(18,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(18,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(18,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(18,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(18,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(18,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(18,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(18,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2)+(J(18,15)^2)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2)+(J(18,16
)^2)*cos(2*pi*fc*t+14*2*pi*fm.*t+14*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=(Vc*J(18,2));
Jm1=(Vc*J(18,3));
Jm2=(Vc*J(18,4));

Jm3=(Vc*J(18,5));
Jm4=(Vc*J(18,6));
Jm5=(Vc*J(18,7));
Jm6=(Vc*J(18,8));
Jm7=(Vc*J(18,9));
Jm8=(Vc*J(18,10));
Jm9=(Vc*J(18,11));
Jm10=(Vc*J(18,12));
Jm11=(Vc*J(18,13));
Jm12=(Vc*J(18,14));
Jm13=(Vc*J(18,15));
Jm14=(Vc*J(18,16));
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(18,2));
set(handles.text102,'String',Vc*J(18,3));
set(handles.text103,'String',Vc*J(18,4));
set(handles.text104,'String',Vc*J(18,5));
set(handles.text105,'String',Vc*J(18,6));
set(handles.text106,'String',Vc*J(18,7));
set(handles.text107,'String',Vc*J(18,8));
set(handles.text108,'String',Vc*J(18,9));
set(handles.text109,'String',Vc*J(18,10));
set(handles.text110,'String',Vc*J(18,11));
set(handles.text111,'String',Vc*J(18,12));
set(handles.text112,'String',Vc*J(18,13));
set(handles.text113,'String',Vc*J(18,14));
set(handles.text114,'String',Vc*J(18,15));
set(handles.text115,'String',Vc*J(18,16));
Vc=str2double(get(handles.edit5,'String'));

Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(18,2))^2/2);
set(handles.text67,'String',(Vc*J(18,3))^2);
set(handles.text68,'String',(Vc*J(18,4))^2);
set(handles.text69,'String',(Vc*J(18,5))^2);
set(handles.text70,'String',(Vc*J(18,6))^2);
set(handles.text71,'String',(Vc*J(18,7))^2);
set(handles.text72,'String',(Vc*J(18,8))^2);
set(handles.text73,'String',(Vc*J(18,9))^2);
set(handles.text74,'String',(Vc*J(18,10))^2);
set(handles.text75,'String',(Vc*J(18,11))^2);
set(handles.text76,'String',(Vc*J(18,12))^2);
set(handles.text77,'String',(Vc*J(18,13))^2);
set(handles.text78,'String',(Vc*J(18,14))^2);
set(handles.text79,'String',(Vc*J(18,15))^2);
set(handles.text80,'String',(Vc*J(18,16))^2);
end
end
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.edit4,'String',beta);
set(handles.text25,'String',n);
set(handles.text26,'String',2*n*fm);
set(handles.text27,'String',beta*fm);
set(handles.periodo,'String',P);
guidata(hObject, handles);
function edit7_Callback(hObject, eventdata, handles)
% hObject
handle to edit7 (see GCBO)

% eventdata
MATLAB
% handles
GUIDATA)

reserved - to be defined in a future version of


structure with handles and user data (see

% Hints: get(hObject,'String') returns contents of edit7 as


text
%
str2double(get(hObject,'String')) returns contents
of edit7 as a double
% --- Executes during object creation, after setting all
properties.
function edit7_CreateFcn(hObject, eventdata, handles)
% hObject
handle to edit7 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgrou
ndColor'));
end
% --- Executes on slider movement.
function slider3_Callback(hObject, eventdata, handles)
% hObject
handle to slider3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
%
get(hObject,'Min') and get(hObject,'Max') to
determine range of slider
% --- Executes during object creation, after setting all
properties.

function slider3_CreateFcn(hObject, eventdata, handles)


% hObject
handle to slider3 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end

function periodo_Callback(hObject, eventdata, handles)


% hObject
handle to periodo (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
set(handles.slider2,'value',str2num(get(hObject,'string')))
% Hints: get(hObject,'String') returns contents of periodo as
text
%
str2double(get(hObject,'String')) returns contents
of periodo as a double
% --- Executes during object creation, after setting all
properties.
function periodo_CreateFcn(hObject, eventdata, handles)
% hObject
handle to periodo (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: edit controls usually have a white background on
Windows.
%
See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on slider movement.

function slider2_Callback(hObject, eventdata, handles)


% hObject
handle to slider2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
structure with handles and user data (see
GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
%
get(hObject,'Min') and get(hObject,'Max') to
determine range of slider
global Vc M J Mw Vm fm fc beta Desv n BW N Fs P val
value = get(hObject,'value');
%PROGRAMACION PARA CONVERTIR LOS STRING QUE EN ESTE CASO SON
LOS PARAMETROS
%DE ENTRADA EN NUMEROS REALES LISTOS PARA SER OPERADOS.
beta=get(handles.slider1,'Value');
N=str2double(get(handles.edit6,'String'));
Fs=str2double(get(handles.edit7,'String'));
Vm=str2double(get(handles.edit1,'String'));
fm=str2double(get(handles.edit2,'String'));
fc=str2double(get(handles.edit3,'String'));
Vc=str2double(get(handles.edit5,'String'));
P=get(handles.slider2,'Value');
%PARAMETROS POR DEFECTO PARA INICIALIZAR EL PROGRAMA.
Ts=1/Fs; %Periodo
t=(0:N)/N; %Vector del tiempo
f=(-N/2:N/2);
tm=0:(P/fm)/N:P/fm;
tc=0:(P/fc)/N:P/fc;
Desv=fm*beta;
%ECUACION DE LA SEAL MODULADORA EN FUNCION DEL TIEMPO Y DE
LA FRECUENCIA
Vm_t=Vm*sin(2*pi*fm*tm);
%Seal Moduladora
Vm_t1=Vm*sin(2*pi*fm*t);
%Seal Moduladora
Vm_w=abs(fftshift(fft(Vm_t1,length(f))))/length(f);
%ECUACION DE LA SEAL PORTADORA EN FUNCION DEL TIEMPO Y DE LA
FRECUENCIA
Vc_t=Vc*sin(2*pi*fc*tc); %Seal Portadora
Vc_t1=Vc*sin(2*pi*fc*t); %Seal Portadora
Vc_w=abs(fftshift(fft(Vc_t1,length(f))))/length(f);

%ECUACION DE LA SEAL MODULADA EN FUNCION DEL TIEMPO Y DE LA


FRECUENCIA
m_t=Vc*sin(2*pi*fc+beta*cos(2*pi*fm*t));
m_w=abs(fftshift(fft(m_t,length(f))))/length(f);
%EL PROGRAMA SELECCIONARA UNO DE ESTOS CASOS DEACUERDO A LAS
OPCIONES
%TOMADAS DEL POPUPMENU
switch val
case 1;
errordlg('Seleccionar Seal','Error')
case 2;
subplot(handles.axes1),plot(tm,Vm_t)
title('Seal Moduladora en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,Vm_w)
title('Seal Moduladora en el dominio de la
Frecuencia','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
A=0;
subplot(handles.axes3),plot(f,A)
title('IMAGEN NO DISPONIBLE','fontsize',12)
Jm0=0;
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));

Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',0);
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',0);
set(handles.text67,'String',0);

set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
beta=0;
n=0;
BW=0;
Df=0;
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.periodo,'String',P);
set(handles.edit4,'String',0);
set(handles.text25,'String',0);
set(handles.text26,'String',0);
set(handles.text27,'String',0);
guidata(hObject, handles);
case 3;
subplot(handles.axes1),plot(tc,Vc_t)
title('Seal Portadora en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo'),ylabel('Amplitud (Volts)')
subplot(handles.axes2),plot(f,Vc_w)
title('Seal Portadora en el dominio de la
Frecuencia','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
A=0;
subplot(handles.axes3),plot(f,A)
title('IMAGEN NO DISPONIBLE','fontsize',12)
Jm0=0;
Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;

Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',0);
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));

Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',0);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
beta=0;
n=0;
BW=0;
Df=0;
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.edit4,'String',0);
set(handles.text25,'String',0);
set(handles.text26,'String',0);
set(handles.text27,'String',0);
set(handles.periodo,'String',P);
guidata(hObject, handles);
case 4;
beta=get(handles.slider1,'Value');
n=str2double(get(handles.text25,'String'));
J=[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0.25 0.98 0.12 0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0.5 0.94 0.24 0.03 0 0 0 0 0 0 0 0 0 0 0 0 ;

1 0.77 0.44 0.11 0.02 0 0 0 0 0 0 0 0 0 0 0 ;


1.5 0.51 0.56 0.23 0.06 0.01 0 0 0 0 0 0 0 0 0 0 ;
2 0.22 0.58 0.35 0.13 0.03 0 0 0 0 0 0 0 0 0 0 ;
2.4 0 0.52 0.43 0.2 0.06 0.02 0 0 0 0 0 0 0 0 0;
2.5 -0.05 0.50 0.45 0.22 0.07 0.02 0.01 0 0 0 0 0 0 0 0 ;
3 -0.25 0.34 0.49 0.31 0.13 0.04 0.01 0 0 0 0 0 0 0 0 ;
4 -0.4 -0.07 0.36 0.43 0.28 0.13 0.05 0.02 0 0 0 0 0 0 0 ;
5 -0.18 -0.33 0.05 0.36 0.39 0.26 0.13 0.05 0.02 0 0 0 0 0
0 ;
5.45 0 -0.34 -0.12 0.23 0.4 0.32 0.19 0.09 0.03 0.01 0 0 0
0 0;
6 0.15 -0.28 -0.24 0.11 0.36 0.36 0.25 0.13 0.06 0.02 0 0
0 0 0 ;
7 0.3 0 -0.3 -0.17 0.16 0.36 0.34 0.23 0.13 0.06 0.02 0 0
0 0 ;
8 0.17 0.23 -0.11 -0.29 -0.1 0.19 0.34 0.32 0.22 0.13 0.06
0.03 0 0 0 ;
8.65 0 0.27 0.06 -0.24 -0.23 0.03 0.26 0.34 0.28 0.18 0.1
0.05 0.02 0 0;
9 -0.09 0.24 0.14 -0.18 -0.27 -0.06 0.2 0.33 0.3 0.21 0.12
0.06 0.03 0.01 0 ;
10 -0.25 0.04 0.25 0.06 -0.22 -0.23 -0.01 0.22 0.31 0.29
0.2 0.12 0.06 0.03 0.01];
if (beta>=0&&beta<0.25)
n=0;
M0=Vc*(J(1,2)*cos(2*pi*fc.*tc));
M=Vc*(J(1,2)*cos(2*pi*fc.*t));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(1,2)^2)/2*cos(2*pi*fc.*t));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(1,2);

Jm1=0;
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(1,2));
set(handles.text102,'String',0);
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(1,2))^2/2);
set(handles.text67,'String',0);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=0.25&&beta<0.5)
n=1;
M0=Vc*(J(2,2).*cos(2*pi*fc.*tc)+J(2,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2));
M=Vc*(J(2,2).*cos(2*pi*fc.*t)+J(2,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(2,2)^2).*cos(2*pi*fc.*t)/2+(J(2,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);

subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(2,2);
Jm1=Vc*J(2,3);
Jm2=0;
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit6,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));

set(handles.text101,'String',Vc*J(2,2));
set(handles.text102,'String',Vc*J(2,3));
set(handles.text103,'String',0);
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(2,2))^2/2);
set(handles.text67,'String',(Vc*J(2,3))^2);
set(handles.text68,'String',0);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);

set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=0.5&&beta<1)
n=2;
M0=Vc*(J(3,2).*cos(2*pi*fc.*tc)+J(3,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(3,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2));
M=Vc*(J(3,2).*cos(2*pi*fc.*t)+J(3,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(3,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(3,2)^2).*cos(2*pi*fc.*t)/2+(J(3,3))^2*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(3,4))^2*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(3,2);
Jm1=Vc*J(3,3);
Jm2=Vc*J(3,4);
Jm3=0;
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(3,2));
set(handles.text102,'String',Vc*J(3,3));
set(handles.text103,'String',Vc*J(3,4));
set(handles.text104,'String',0);
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));

Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(3,2))^2/2);
set(handles.text67,'String',(Vc*J(3,3))^2);
set(handles.text68,'String',(Vc*J(3,4))^2);
set(handles.text69,'String',0);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=1&&beta<1.5)
n=3;
M0=Vc*(J(4,2).*cos(2*pi*fc.*tc)+J(4,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(4,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(4,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2));
M=Vc*(J(4,2).*cos(2*pi*fc.*t)+J(4,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(4,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(4,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=Vc^2*((J(4,2)^2).*cos(2*pi*fc.*t)/2+(J(4,3)^2)*cos(2*pi*fc
*t+2*pi*fm.*t+pi/2)+(J(4,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*p
i/2)+(J(4,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)

title('Seal Modulada (Watts vs


Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(4,2);
Jm1=Vc*J(4,3);
Jm2=Vc*J(4,4);
Jm3=Vc*J(4,5);
Jm4=0;
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(4,2));
set(handles.text102,'String',Vc*J(4,3));
set(handles.text103,'String',Vc*J(4,4));
set(handles.text104,'String',Vc*J(4,5));
set(handles.text105,'String',0);
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);

set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(4,2))^2/2);
set(handles.text67,'String',(Vc*J(4,3))^2);
set(handles.text68,'String',(Vc*J(4,4))^2);
set(handles.text69,'String',(Vc*J(4,5))^2);
set(handles.text70,'String',0);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=1.5&&beta<2)
n=4;
M0=Vc*(J(5,2)*cos(2*pi*fc*tc)+J(5,3)*cos(2*pi*fc*tc+2*pi*fm*t
m+pi/2)+J(5,4)*cos(2*pi*fc*tc+2*2*pi*fm*tm+2*pi/2)+J(5,5)*cos
(2*pi*fc*tc+3*2*pi*fm*tm+3*pi/2)+J(5,6)*cos(2*pi*fc*tc+4*2*pi
*fm*tm+4*pi/2));

M=Vc*(J(5,2)*cos(2*pi*fc*t)+J(5,3)*cos(2*pi*fc*t+2*pi*fm*t+pi
/2)+J(5,4)*cos(2*pi*fc*t+2*2*pi*fm*t+2*pi/2)+J(5,5)*cos(2*pi*
fc*t+3*2*pi*fm*t+3*pi/2)+J(5,6)*cos(2*pi*fc*t+4*2*pi*fm*t+4*p
i/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(5,2)^2)*cos(2*pi*fc*t)/2+(J(5,3)^2)*cos(2*pi*fc
*t+2*pi*fm*t+pi/2)+(J(5,4)^2)*cos(2*pi*fc*t+2*2*pi*fm*t+2*pi/
2)+(J(5,5)^2)*cos(2*pi*fc*t+3*2*pi*fm*t+3*pi/2)+(J(5,6)^2)*co
s(2*pi*fc*t+4*2*pi*fm*t+4*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(5,2);
Jm1=Vc*J(5,3);
Jm2=Vc*J(5,4);
Jm3=Vc*J(5,5);
Jm4=Vc*J(5,6);
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));

Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(5,2));
set(handles.text102,'String',Vc*J(5,3));
set(handles.text103,'String',Vc*J(5,4));
set(handles.text104,'String',Vc*J(5,5));
set(handles.text105,'String',Vc*J(5,6));
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(5,2))^2/2);
set(handles.text67,'String',(Vc*J(5,3))^2);

set(handles.text68,'String',(Vc*J(5,4))^2);
set(handles.text69,'String',(Vc*J(5,5))^2);
set(handles.text70,'String',(Vc*J(5,6))^2);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2&&beta<2.4)
n=4;
M0=Vc*(J(6,2).*cos(2*pi*fc.*tc)+J(6,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(6,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(6,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(6,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2));
M=Vc*(J(6,2).*cos(2*pi*fc.*t)+J(6,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(6,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(6,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(6,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(6,2)^2).*cos(2*pi*fc.*t)/2+(J(6,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(6,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(6,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(6,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)

grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud


(Watts)')
Jm0=Vc*J(6,2);
Jm1=Vc*J(6,3);
Jm2=Vc*J(6,4);
Jm3=Vc*J(6,5);
Jm4=Vc*J(6,6);
Jm5=0;
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(6,2));
set(handles.text102,'String',Vc*J(6,3));
set(handles.text103,'String',Vc*J(6,4));
set(handles.text104,'String',Vc*J(6,5));
set(handles.text105,'String',Vc*J(6,6));
set(handles.text106,'String',0);
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);

set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(6,2))^2/2);
set(handles.text67,'String',(Vc*J(6,3))^2);
set(handles.text68,'String',(Vc*J(6,4))^2);
set(handles.text69,'String',(Vc*J(6,5))^2);
set(handles.text70,'String',(Vc*J(6,6))^2);
set(handles.text71,'String',0);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2.4&&beta<2.5)
n=5;
M0=Vc*(J(7,2).*cos(2*pi*fc.*tc)+J(7,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(7,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(7,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(7,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(7,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2));
M=Vc*(J(7,2).*cos(2*pi*fc.*t)+J(7,3)*cos(2*pi*fc*t+2*pi*fm.*t

+pi/2)+J(7,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(7,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(7,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(7,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(7,2)^2).*cos(2*pi*fc.*t)/2+(J(7,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(7,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(7,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(7,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(7,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(7,2);
Jm1=Vc*J(7,3);
Jm2=Vc*J(7,4);
Jm3=Vc*J(7,5);
Jm4=Vc*J(7,6);
Jm5=Vc*J(7,7);
Jm6=0;
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));

Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(7,2));
set(handles.text102,'String',Vc*J(7,3));
set(handles.text103,'String',Vc*J(7,4));
set(handles.text104,'String',Vc*J(7,5));
set(handles.text105,'String',Vc*J(7,6));
set(handles.text106,'String',Vc*J(7,7));
set(handles.text107,'String',0);
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(7,2))^2/2);
set(handles.text67,'String',(Vc*J(7,3))^2);

set(handles.text68,'String',(Vc*J(7,4))^2);
set(handles.text69,'String',(Vc*J(7,5))^2);
set(handles.text70,'String',(Vc*J(7,6))^2);
set(handles.text71,'String',(Vc*J(7,7))^2);
set(handles.text72,'String',0);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=2.5&&beta<3)
n=6;
M0=Vc*(J(8,2).*cos(2*pi*fc.*tc)+J(8,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(8,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(8,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(8,6)*cos(2*pi*fc*tc+4
*2*pi*fm.*tm+4*pi/2)+J(8,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2)+J(8,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2));
M=Vc*(J(8,2).*cos(2*pi*fc.*t)+J(8,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(8,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(8,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(8,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(8,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(8,8)*c
os(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(8,2)^2).*cos(2*pi*fc.*t)/2+(J(8,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(8,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(8,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(8,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(8,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2)+(J(8,8)^2)*cos(2*pi*fc*t+6*2*pi*fm.*t+
6*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')

subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(8,2);
Jm1=Vc*J(8,3);
Jm2=Vc*J(8,4);
Jm3=Vc*J(8,5);
Jm4=Vc*J(8,6);
Jm5=Vc*J(8,7);
Jm6=Vc*J(8,8);
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text108,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(8,2));
set(handles.text102,'String',Vc*J(8,3));
set(handles.text103,'String',Vc*J(8,4));
set(handles.text104,'String',Vc*J(8,5));
set(handles.text105,'String',Vc*J(8,6));
set(handles.text106,'String',Vc*J(8,7));
set(handles.text107,'String',Vc*J(8,8));
set(handles.text108,'String',0);
set(handles.text109,'String',0);

set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(8,2))^2/2);
set(handles.text67,'String',(Vc*J(8,3))^2);
set(handles.text68,'String',(Vc*J(8,4))^2);
set(handles.text69,'String',(Vc*J(8,5))^2);
set(handles.text70,'String',(Vc*J(8,6))^2);
set(handles.text71,'String',(Vc*J(8,7))^2);
set(handles.text72,'String',(Vc*J(8,8))^2);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=3&&beta<4)
n=6;
M0=Vc*(J(9,2).*cos(2*pi*fc.*tc)+J(9,3)*cos(2*pi*fc*tc+2*pi*fm
.*tm+pi/2)+J(9,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(9,5)
*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(9,6)*cos(2*pi*fc*tc+4

*2*pi*fm.*tm+4*pi/2)+J(9,7)*cos(2*pi*fc*tc+5*2*pi*fm.*tm+5*pi
/2)+J(9,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2));
M=Vc*(J(9,2).*cos(2*pi*fc.*t)+J(9,3)*cos(2*pi*fc*t+2*pi*fm.*t
+pi/2)+J(9,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(9,5)*cos(2
*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(9,6)*cos(2*pi*fc*t+4*2*pi*fm.
*t+4*pi/2)+J(9,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(9,8)*c
os(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(9,2)^2).*cos(2*pi*fc.*t)/2+(J(9,3)^2)*cos(2*pi*
fc*t+2*pi*fm.*t+pi/2)+(J(9,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*t+2
*pi/2)+(J(9,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(9,6)^
2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(9,7)^2)*cos(2*pi*fc*
t+5*2*pi*fm.*t+5*pi/2)+(J(9,8)^2)*cos(2*pi*fc*t+6*2*pi*fm.*t+
6*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(9,2);
Jm1=Vc*J(9,3);
Jm2=Vc*J(9,4);
Jm3=Vc*J(9,5);
Jm4=Vc*J(9,6);
Jm5=Vc*J(9,7);
Jm6=Vc*J(9,8);
Jm7=0;
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(9,2));
set(handles.text102,'String',Vc*J(9,3));
set(handles.text103,'String',Vc*J(9,4));
set(handles.text104,'String',Vc*J(9,5));
set(handles.text105,'String',Vc*J(9,6));
set(handles.text106,'String',Vc*J(9,7));
set(handles.text107,'String',Vc*J(9,8));
set(handles.text108,'String',0);
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));

Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(9,2))^2/2);
set(handles.text67,'String',(Vc*J(9,3))^2);
set(handles.text68,'String',(Vc*J(9,4))^2);
set(handles.text69,'String',(Vc*J(9,5))^2);
set(handles.text70,'String',(Vc*J(9,6))^2);
set(handles.text71,'String',(Vc*J(9,7))^2);
set(handles.text72,'String',(Vc*J(9,8))^2);
set(handles.text73,'String',0);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=4&&beta<5)
n=7;
M0=Vc*(J(10,2).*cos(2*pi*fc.*tc)+J(10,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(10,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
0,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(10,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(10,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(10,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(10,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2));
M=Vc*(J(10,2).*cos(2*pi*fc.*t)+J(10,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(10,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(10,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(10,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(10,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
10,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(10,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(10,2)^2).*cos(2*pi*fc.*t)/2+(J(10,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(10,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(10,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
0,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(10,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(10,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(10,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
);
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')

title('Seal Modulada en el dominio del


Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(10,2);
Jm1=Vc*J(10,3);
Jm2=Vc*J(10,4);
Jm3=Vc*J(10,5);
Jm4=Vc*J(10,6);
Jm5=Vc*J(10,7);
Jm6=Vc*J(10,8);
Jm7=Vc*J(10,9);
Jm8=0;
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));

set(handles.text101,'String',Vc*J(10,2));
set(handles.text102,'String',Vc*J(10,3));
set(handles.text103,'String',Vc*J(10,4));
set(handles.text104,'String',Vc*J(10,5));
set(handles.text105,'String',Vc*J(10,6));
set(handles.text106,'String',Vc*J(10,7));
set(handles.text107,'String',Vc*J(10,8));
set(handles.text108,'String',Vc*J(10,9));
set(handles.text109,'String',0);
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(10,2))^2/2);
set(handles.text67,'String',(Vc*J(10,3))^2);
set(handles.text68,'String',(Vc*J(10,4))^2);
set(handles.text69,'String',(Vc*J(10,5))^2);
set(handles.text70,'String',(Vc*J(10,6))^2);
set(handles.text71,'String',(Vc*J(10,7))^2);
set(handles.text72,'String',(Vc*J(10,8))^2);
set(handles.text73,'String',(Vc*J(10,9))^2);
set(handles.text74,'String',0);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);

set(handles.text80,'String',0);
elseif (beta>=5&&beta<5.45)
n=8;
M0=Vc*(J(11,2).*cos(2*pi*fc.*tc)+J(11,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(11,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
1,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(11,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(11,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(11,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(11,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(11,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2));
M=Vc*(J(11,2).*cos(2*pi*fc.*t)+J(11,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(11,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(11,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(11,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(11,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
11,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(11,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(11,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(11,2)^2).*cos(2*pi*fc.*t)/2+(J(11,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(11,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(11,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
1,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(11,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(11,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(11,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(11,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(11,2);
Jm1=Vc*J(11,3);

Jm2=Vc*J(11,4);
Jm3=Vc*J(11,5);
Jm4=Vc*J(11,6);
Jm5=Vc*J(11,7);
Jm6=Vc*J(11,8);
Jm7=Vc*J(11,9);
Jm8=Vc*J(11,10);
Jm9=0;
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(11,2));
set(handles.text102,'String',Vc*J(11,3));
set(handles.text103,'String',Vc*J(11,4));
set(handles.text104,'String',Vc*J(11,5));
set(handles.text105,'String',Vc*J(11,6));
set(handles.text106,'String',Vc*J(11,7));
set(handles.text107,'String',Vc*J(11,8));
set(handles.text108,'String',Vc*J(11,9));
set(handles.text109,'String',Vc*J(11,10));
set(handles.text110,'String',0);
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(11,2))^2/2);
set(handles.text67,'String',(Vc*J(11,3))^2);
set(handles.text68,'String',(Vc*J(11,4))^2);
set(handles.text69,'String',(Vc*J(11,5))^2);
set(handles.text70,'String',(Vc*J(11,6))^2);
set(handles.text71,'String',(Vc*J(11,7))^2);
set(handles.text72,'String',(Vc*J(11,8))^2);
set(handles.text73,'String',(Vc*J(11,9))^2);
set(handles.text74,'String',(Vc*J(11,10))^2);
set(handles.text75,'String',0);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=5.45&&beta<6)
n=9;
M0=Vc*(J(12,2).*cos(2*pi*fc.*tc)+J(12,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(12,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
2,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(12,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(12,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(12,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(12,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(12,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(12,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2));
M=Vc*(J(12,2).*cos(2*pi*fc.*t)+J(12,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(12,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(12,5)*c

os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(12,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(12,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
12,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(12,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(12,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(12,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(12,2)^2).*cos(2*pi*fc.*t)/2+(J(12,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(12,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(12,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
2,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(12,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(12,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(12,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(12,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(12,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(12,2);
Jm1=Vc*J(12,3);
Jm2=Vc*J(12,4);
Jm3=Vc*J(12,5);
Jm4=Vc*J(12,6);
Jm5=Vc*J(12,7);
Jm6=Vc*J(12,8);
Jm7=Vc*J(12,9);
Jm8=Vc*J(12,10);
Jm9=Vc*J(12,11);
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(12,2));
set(handles.text102,'String',Vc*J(12,3));
set(handles.text103,'String',Vc*J(12,4));
set(handles.text104,'String',Vc*J(12,5));
set(handles.text105,'String',Vc*J(12,6));
set(handles.text106,'String',Vc*J(12,7));
set(handles.text107,'String',Vc*J(12,8));
set(handles.text108,'String',Vc*J(12,9));
set(handles.text109,'String',Vc*J(12,10));
set(handles.text110,'String',Vc*J(12,11));
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));

Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(12,2))^2/2);
set(handles.text67,'String',(Vc*J(12,3))^2);
set(handles.text68,'String',(Vc*J(12,4))^2);
set(handles.text69,'String',(Vc*J(12,5))^2);
set(handles.text70,'String',(Vc*J(12,6))^2);
set(handles.text71,'String',(Vc*J(12,7))^2);
set(handles.text72,'String',(Vc*J(12,8))^2);
set(handles.text73,'String',(Vc*J(12,9))^2);
set(handles.text74,'String',(Vc*J(12,10))^2);
set(handles.text75,'String',(Vc*J(12,11))^2);
set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=6&&beta<7)
n=9;
M0=Vc*(J(13,2).*cos(2*pi*fc.*tc)+J(13,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(13,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
3,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(13,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(13,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(13,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(13,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(13,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(13,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2));
M=Vc*(J(13,2).*cos(2*pi*fc.*t)+J(13,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(13,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(13,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(13,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(13,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
13,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(13,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(13,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(13,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(13,2)^2).*cos(2*pi*fc.*t)/2+(J(13,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(13,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(13,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
3,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(13,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(13,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(13,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)

+(J(13,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(13,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(13,2);
Jm1=Vc*J(13,3);
Jm2=Vc*J(13,4);
Jm3=Vc*J(13,5);
Jm4=Vc*J(13,6);
Jm5=Vc*J(13,7);
Jm6=Vc*J(13,8);
Jm7=Vc*J(13,9);
Jm8=Vc*J(13,10);
Jm9=Vc*J(13,11);
Jm10=0;
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));

Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(13,2));
set(handles.text102,'String',Vc*J(13,3));
set(handles.text103,'String',Vc*J(13,4));
set(handles.text104,'String',Vc*J(13,5));
set(handles.text105,'String',Vc*J(13,6));
set(handles.text106,'String',Vc*J(13,7));
set(handles.text107,'String',Vc*J(13,8));
set(handles.text108,'String',Vc*J(13,9));
set(handles.text109,'String',Vc*J(13,10));
set(handles.text110,'String',Vc*J(13,11));
set(handles.text111,'String',0);
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(13,2))^2/2);
set(handles.text67,'String',(Vc*J(13,3))^2);
set(handles.text68,'String',(Vc*J(13,4))^2);
set(handles.text69,'String',(Vc*J(13,5))^2);
set(handles.text70,'String',(Vc*J(13,6))^2);
set(handles.text71,'String',(Vc*J(13,7))^2);
set(handles.text72,'String',(Vc*J(13,8))^2);
set(handles.text73,'String',(Vc*J(13,9))^2);
set(handles.text74,'String',(Vc*J(13,10))^2);
set(handles.text75,'String',(Vc*J(13,11))^2);

set(handles.text76,'String',0);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=7&&beta<8)
n=10;
M0=Vc*(J(14,2).*cos(2*pi*fc.*tc)+J(14,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(14,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
4,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(14,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(14,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(14,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(14,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(14,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(14,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(14,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2));
M=Vc*(J(14,2).*cos(2*pi*fc.*t)+J(14,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(14,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(14,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(14,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(14,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
14,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(14,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(14,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(14,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(14,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(14,2)^2).*cos(2*pi*fc.*t)/2+(J(14,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(14,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(14,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
4,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(14,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(14,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(14,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(14,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(14,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(14,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)

grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud


(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(14,2);
Jm1=Vc*J(14,3);
Jm2=Vc*J(14,4);
Jm3=Vc*J(14,5);
Jm4=Vc*J(14,6);
Jm5=Vc*J(14,7);
Jm6=Vc*J(14,8);
Jm7=Vc*J(14,9);
Jm8=Vc*J(14,10);
Jm9=Vc*J(14,11);
Jm10=Vc*J(14,12);
Jm11=0;
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(14,2));
set(handles.text102,'String',Vc*J(14,3));
set(handles.text103,'String',Vc*J(14,4));
set(handles.text104,'String',Vc*J(14,5));
set(handles.text105,'String',Vc*J(14,6));
set(handles.text106,'String',Vc*J(14,7));
set(handles.text107,'String',Vc*J(14,8));

set(handles.text108,'String',Vc*J(14,9));
set(handles.text109,'String',Vc*J(14,10));
set(handles.text110,'String',Vc*J(14,11));
set(handles.text111,'String',Vc*J(14,12));
set(handles.text112,'String',0);
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(14,2))^2/2);
set(handles.text67,'String',(Vc*J(14,3))^2);
set(handles.text68,'String',(Vc*J(14,4))^2);
set(handles.text69,'String',(Vc*J(14,5))^2);
set(handles.text70,'String',(Vc*J(14,6))^2);
set(handles.text71,'String',(Vc*J(14,7))^2);
set(handles.text72,'String',(Vc*J(14,8))^2);
set(handles.text73,'String',(Vc*J(14,9))^2);
set(handles.text74,'String',(Vc*J(14,10))^2);
set(handles.text75,'String',(Vc*J(14,11))^2);
set(handles.text76,'String',(Vc*J(14,12))^2);
set(handles.text77,'String',0);
set(handles.text78,'String',0);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=8&&beta<8.65)
n=11;
M0=Vc*(J(15,2).*cos(2*pi*fc.*tc)+J(15,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(15,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1

5,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(15,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(15,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(15,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(15,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(15,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(15,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(15,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(15
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2));
M=Vc*(J(15,2).*cos(2*pi*fc.*t)+J(15,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(15,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(15,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(15,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(15,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
15,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(15,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(15,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(15,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(15,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(15,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(15,2)^2).*cos(2*pi*fc.*t)/2+(J(15,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(15,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(15,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
5,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(15,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(15,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(15,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(15,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(15,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(15,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(15,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(15,2);
Jm1=Vc*J(15,3);

Jm2=Vc*J(15,4);
Jm3=Vc*J(15,5);
Jm4=Vc*J(15,6);
Jm5=Vc*J(15,7);
Jm6=Vc*J(15,8);
Jm7=Vc*J(15,9);
Jm8=Vc*J(15,10);
Jm9=Vc*J(15,11);
Jm10=Vc*J(15,12);
Jm11=Vc*J(15,13);
Jm12=0;
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(15,2));
set(handles.text102,'String',Vc*J(15,3));
set(handles.text103,'String',Vc*J(15,4));
set(handles.text104,'String',Vc*J(15,5));
set(handles.text105,'String',Vc*J(15,6));
set(handles.text106,'String',Vc*J(15,7));
set(handles.text107,'String',Vc*J(15,8));
set(handles.text108,'String',Vc*J(15,9));
set(handles.text109,'String',Vc*J(15,10));
set(handles.text110,'String',Vc*J(15,11));
set(handles.text111,'String',Vc*J(15,12));
set(handles.text112,'String',Vc*J(15,13));
set(handles.text113,'String',0);
set(handles.text114,'String',0);
set(handles.text115,'String',0);

Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(15,2))^2/2);
set(handles.text67,'String',(Vc*J(15,3))^2);
set(handles.text68,'String',(Vc*J(15,4))^2);
set(handles.text69,'String',(Vc*J(15,5))^2);
set(handles.text70,'String',(Vc*J(15,6))^2);
set(handles.text71,'String',(Vc*J(15,7))^2);
set(handles.text72,'String',(Vc*J(15,8))^2);
set(handles.text73,'String',(Vc*J(15,9))^2);
set(handles.text74,'String',(Vc*J(15,10))^2);
set(handles.text75,'String',(Vc*J(15,11))^2);
set(handles.text76,'String',(Vc*J(15,12))^2);
set(handles.text77,'String',(Vc*J(15,13))^2);
set(handles.text78,'String', 0);
set(handles.text79,'String', 0);
set(handles.text80,'String', 0);
elseif (beta>=8.64&&beta<9)
n=12;
M0=Vc*(J(16,2).*cos(2*pi*fc.*tc)+J(16,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(16,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
6,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(16,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(16,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(16,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(16,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(16,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(16,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(16,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(16
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(16,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2));

M=Vc*(J(16,2).*cos(2*pi*fc.*t)+J(16,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(16,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(16,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(16,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(16,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
16,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(16,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(16,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(16,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(16,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(16,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(16,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(16,2)^2).*cos(2*pi*fc.*t)/2+(J(16,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(16,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(16,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
6,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(16,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(16,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(16,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(16,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(16,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(16,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(16,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(16,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(16,2);
Jm1=Vc*J(16,3);
Jm2=Vc*J(16,4);
Jm3=Vc*J(16,5);
Jm4=Vc*J(16,6);
Jm5=Vc*J(16,7);
Jm6=Vc*J(16,8);

Jm7=Vc*J(16,9);
Jm8=Vc*J(16,10);
Jm9=Vc*J(16,11);
Jm10=Vc*J(16,12);
Jm11=Vc*J(16,13);
Jm10=Vc*J(16,14);
Jm13=0;
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(16,2));
set(handles.text102,'String',Vc*J(16,3));
set(handles.text103,'String',Vc*J(16,4));
set(handles.text104,'String',Vc*J(16,5));
set(handles.text105,'String',Vc*J(16,6));
set(handles.text106,'String',Vc*J(16,7));
set(handles.text107,'String',Vc*J(16,8));
set(handles.text108,'String',Vc*J(16,9));
set(handles.text109,'String',Vc*J(16,10));
set(handles.text110,'String',Vc*J(16,11));
set(handles.text111,'String',Vc*J(16,12));
set(handles.text112,'String',Vc*J(16,13));
set(handles.text113,'String',Vc*J(16,14));
set(handles.text114,'String',0);
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));

Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(16,2))^2/2);
set(handles.text67,'String',(Vc*J(16,3))^2);
set(handles.text68,'String',(Vc*J(16,4))^2);
set(handles.text69,'String',(Vc*J(16,5))^2);
set(handles.text70,'String',(Vc*J(16,6))^2);
set(handles.text71,'String',(Vc*J(16,7))^2);
set(handles.text72,'String',(Vc*J(16,8))^2);
set(handles.text73,'String',(Vc*J(16,9))^2);
set(handles.text74,'String',(Vc*J(16,10))^2);
set(handles.text75,'String',(Vc*J(16,11))^2);
set(handles.text76,'String',(Vc*J(16,12))^2);
set(handles.text77,'String',(Vc*J(16,13))^2);
set(handles.text78,'String',(Vc*J(16,14))^2);
set(handles.text79,'String',0);
set(handles.text80,'String',0);
elseif (beta>=9&&beta<10)
n=13;
M0=Vc*(J(17,2).*cos(2*pi*fc.*tc)+J(17,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(17,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
7,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(17,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(17,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(17,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(17,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(17,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(17,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(17,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(17
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(17,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2)+J(17,15)*cos(2*pi*fc*tc+13*2*p
i*fm.*tm+13*pi/2));
M=Vc*(J(17,2).*cos(2*pi*fc.*t)+J(17,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(17,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(17,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(17,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(17,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(

17,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(17,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(17,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(17,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(17,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(17,13)*cos(2*pi*fc*t+11*
2*pi*fm.*t+11*pi/2)+J(17,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2)+J(17,15)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(17,2)^2).*cos(2*pi*fc.*t)/2+(J(17,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(17,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(17,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
7,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(17,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(17,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(17,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(17,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(17,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(17,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(17,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(17,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2)+(J(17,15)^2)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=Vc*J(17,2);
Jm1=Vc*J(17,3);
Jm2=Vc*J(17,4);
Jm3=Vc*J(17,5);
Jm4=Vc*J(17,6);
Jm5=Vc*J(17,7);
Jm6=Vc*J(17,8);
Jm7=Vc*J(17,9);
Jm8=Vc*J(17,10);
Jm9=Vc*J(17,11);
Jm10=Vc*J(17,12);
Jm11=Vc*J(17,13);

Jm10=Vc*J(17,14);
Jm13=Vc*J(17,15);
Jm14=0;
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(17,2));
set(handles.text102,'String',Vc*J(17,3));
set(handles.text103,'String',Vc*J(17,4));
set(handles.text104,'String',Vc*J(17,5));
set(handles.text105,'String',Vc*J(17,6));
set(handles.text106,'String',Vc*J(17,7));
set(handles.text107,'String',Vc*J(17,8));
set(handles.text108,'String',Vc*J(17,9));
set(handles.text109,'String',Vc*J(17,10));
set(handles.text110,'String',Vc*J(17,11));
set(handles.text111,'String',Vc*J(17,12));
set(handles.text112,'String',Vc*J(17,13));
set(handles.text113,'String',Vc*J(17,14));
set(handles.text114,'String',Vc*J(17,15));
set(handles.text115,'String',0);
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));

Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));
Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(17,2))^2/2);
set(handles.text67,'String',(Vc*J(17,3))^2);
set(handles.text68,'String',(Vc*J(17,4))^2);
set(handles.text69,'String',(Vc*J(17,5))^2);
set(handles.text70,'String',(Vc*J(17,6))^2);
set(handles.text71,'String',(Vc*J(17,7))^2);
set(handles.text72,'String',(Vc*J(17,8))^2);
set(handles.text73,'String',(Vc*J(17,9))^2);
set(handles.text74,'String',(Vc*J(17,10))^2);
set(handles.text75,'String',(Vc*J(17,11))^2);
set(handles.text76,'String',(Vc*J(17,12))^2);
set(handles.text77,'String',(Vc*J(17,13))^2);
set(handles.text78,'String',(Vc*J(17,14))^2);
set(handles.text79,'String',(Vc*J(17,15))^2);
set(handles.text80,'String',0);
else (beta==10)
n=14;
M0=Vc*(J(18,2).*cos(2*pi*fc.*tc)+J(18,3)*cos(2*pi*fc*tc+2*pi*
fm.*tm+pi/2)+J(18,4)*cos(2*pi*fc*tc+2*2*pi*fm.*tm+2*pi/2)+J(1
8,5)*cos(2*pi*fc*tc+3*2*pi*fm.*tm+3*pi/2)+J(18,6)*cos(2*pi*fc
*tc+4*2*pi*fm.*tm+4*pi/2)+J(18,7)*cos(2*pi*fc*tc+5*2*pi*fm.*t
m+5*pi/2)+J(18,8)*cos(2*pi*fc*tc+6*2*pi*fm.*tm+6*pi/2)+J(18,9
)*cos(2*pi*fc*tc+7*2*pi*fm.*tm+7*pi/2)+J(18,10)*cos(2*pi*fc*t
c+8*2*pi*fm.*tm+8*pi/2)+J(18,11)*cos(2*pi*fc*tc+9*2*pi*fm.*tm
+9*pi/2)+J(18,12)*cos(2*pi*fc*tc+10*2*pi*fm.*tm+10*pi/2)+J(18
,13)*cos(2*pi*fc*tc+11*2*pi*fm.*tm+11*pi/2)+J(18,14)*cos(2*pi
*fc*tc+12*2*pi*fm.*tm+12*pi/2)+J(18,15)*cos(2*pi*fc*tc+13*2*p
i*fm.*tm+13*pi/2)+J(18,16)*cos(2*pi*fc*tc+14*2*pi*fm.*tm+14*p
i/2));
M=Vc*(J(18,2).*cos(2*pi*fc.*t)+J(18,3)*cos(2*pi*fc*t+2*pi*fm.
*t+pi/2)+J(18,4)*cos(2*pi*fc*t+2*2*pi*fm.*t+2*pi/2)+J(18,5)*c
os(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+J(18,6)*cos(2*pi*fc*t+4*2*p
i*fm.*t+4*pi/2)+J(18,7)*cos(2*pi*fc*t+5*2*pi*fm.*t+5*pi/2)+J(
18,8)*cos(2*pi*fc*t+6*2*pi*fm.*t+6*pi/2)+J(18,9)*cos(2*pi*fc*
t+7*2*pi*fm.*t+7*pi/2)+J(18,10)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*
pi/2)+J(18,11)*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+J(18,12)*co
s(2*pi*fc*t+10*2*pi*fm.*t+10*pi/2)+J(18,13)*cos(2*pi*fc*t+11*

2*pi*fm.*t+11*pi/2)+J(18,14)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*p
i/2)+J(18,15)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2)+J(18,16)*c
os(2*pi*fc*t+14*2*pi*fm.*t+14*pi/2));
Mw=abs(fftshift(fft(M,length(f))))/length(f);
M1=(Vc^2)*((J(18,2)^2).*cos(2*pi*fc.*t)/2+(J(18,3)^2)*cos(2*p
i*fc*t+2*pi*fm.*t+pi/2)+(J(18,4)^2)*cos(2*pi*fc*t+2*2*pi*fm.*
t+2*pi/2)+(J(18,5)^2)*cos(2*pi*fc*t+3*2*pi*fm.*t+3*pi/2)+(J(1
8,6)^2)*cos(2*pi*fc*t+4*2*pi*fm.*t+4*pi/2)+(J(18,7)^2)*cos(2*
pi*fc*t+5*2*pi*fm.*t+5*pi/2)+(J(18,8)^2)*cos(2*pi*fc*t+6*2*pi
*fm.*t+6*pi/2)+(J(18,9)^2)*cos(2*pi*fc*t+7*2*pi*fm.*t+7*pi/2)
+(J(18,10)^2)*cos(2*pi*fc*t+8*2*pi*fm.*t+8*pi/2)+(J(18,11)^2)
*cos(2*pi*fc*t+9*2*pi*fm.*t+9*pi/2)+(J(18,12)^2)*cos(2*pi*fc*
t+10*2*pi*fm.*t+10*pi/2)+(J(18,13)^2)*cos(2*pi*fc*t+11*2*pi*f
m.*t+11*pi/2)+(J(18,14)^2)*cos(2*pi*fc*t+12*2*pi*fm.*t+12*pi/
2)+(J(18,15)^2)*cos(2*pi*fc*t+13*2*pi*fm.*t+13*pi/2)+(J(18,16
)^2)*cos(2*pi*fc*t+14*2*pi*fm.*t+14*pi/2));
Mw1=abs(fftshift(fft(M1,length(f))))/length(f);
subplot(handles.axes1),plot(t,M0,'k')
title('Seal Modulada en el dominio del
Tiempo','fontsize',12)
grid on,xlabel('Tiempo (s)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes2),plot(f,2*Mw)
title('Seal Modulada (Volts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Volts)')
subplot(handles.axes3),plot(f,2*Mw1)
title('Seal Modulada (Watts vs
Frec.)','fontsize',12)
grid on,xlabel('Frecuencia (Hz)'),ylabel('Amplitud
(Watts)')
Jm0=(Vc*J(18,2));
Jm1=(Vc*J(18,3));
Jm2=(Vc*J(18,4));
Jm3=(Vc*J(18,5));
Jm4=(Vc*J(18,6));
Jm5=(Vc*J(18,7));
Jm6=(Vc*J(18,8));
Jm7=(Vc*J(18,9));
Jm8=(Vc*J(18,10));
Jm9=(Vc*J(18,11));
Jm10=(Vc*J(18,12));
Jm11=(Vc*J(18,13));
Jm12=(Vc*J(18,14));
Jm13=(Vc*J(18,15));

Jm14=(Vc*J(18,16));
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text101,'String'));
Jm1=str2double(get(handles.text102,'String'));
Jm2=str2double(get(handles.text103,'String'));
Jm3=str2double(get(handles.text104,'String'));
Jm4=str2double(get(handles.text105,'String'));
Jm5=str2double(get(handles.text106,'String'));
Jm6=str2double(get(handles.text107,'String'));
Jm7=str2double(get(handles.text108,'String'));
Jm8=str2double(get(handles.text109,'String'));
Jm9=str2double(get(handles.text110,'String'));
Jm10=str2double(get(handles.text111,'String'));
Jm11=str2double(get(handles.text112,'String'));
Jm12=str2double(get(handles.text113,'String'));
Jm13=str2double(get(handles.text114,'String'));
Jm14=str2double(get(handles.text115,'String'));
set(handles.text101,'String',Vc*J(18,2));
set(handles.text102,'String',Vc*J(18,3));
set(handles.text103,'String',Vc*J(18,4));
set(handles.text104,'String',Vc*J(18,5));
set(handles.text105,'String',Vc*J(18,6));
set(handles.text106,'String',Vc*J(18,7));
set(handles.text107,'String',Vc*J(18,8));
set(handles.text108,'String',Vc*J(18,9));
set(handles.text109,'String',Vc*J(18,10));
set(handles.text110,'String',Vc*J(18,11));
set(handles.text111,'String',Vc*J(18,12));
set(handles.text112,'String',Vc*J(18,13));
set(handles.text113,'String',Vc*J(18,14));
set(handles.text114,'String',Vc*J(18,15));
set(handles.text115,'String',Vc*J(18,16));
Vc=str2double(get(handles.edit5,'String'));
Jm0=str2double(get(handles.text66,'String'));
Jm1=str2double(get(handles.text67,'String'));
Jm2=str2double(get(handles.text68,'String'));
Jm3=str2double(get(handles.text69,'String'));
Jm4=str2double(get(handles.text70,'String'));
Jm5=str2double(get(handles.text71,'String'));
Jm6=str2double(get(handles.text72,'String'));
Jm7=str2double(get(handles.text73,'String'));
Jm8=str2double(get(handles.text74,'String'));
Jm9=str2double(get(handles.text75,'String'));
Jm10=str2double(get(handles.text76,'String'));

Jm11=str2double(get(handles.text77,'String'));
Jm12=str2double(get(handles.text78,'String'));
Jm13=str2double(get(handles.text79,'String'));
Jm14=str2double(get(handles.text80,'String'));
set(handles.text66,'String',(Vc*J(18,2))^2/2);
set(handles.text67,'String',(Vc*J(18,3))^2);
set(handles.text68,'String',(Vc*J(18,4))^2);
set(handles.text69,'String',(Vc*J(18,5))^2);
set(handles.text70,'String',(Vc*J(18,6))^2);
set(handles.text71,'String',(Vc*J(18,7))^2);
set(handles.text72,'String',(Vc*J(18,8))^2);
set(handles.text73,'String',(Vc*J(18,9))^2);
set(handles.text74,'String',(Vc*J(18,10))^2);
set(handles.text75,'String',(Vc*J(18,11))^2);
set(handles.text76,'String',(Vc*J(18,12))^2);
set(handles.text77,'String',(Vc*J(18,13))^2);
set(handles.text78,'String',(Vc*J(18,14))^2);
set(handles.text79,'String',(Vc*J(18,15))^2);
set(handles.text80,'String',(Vc*J(18,16))^2);
end
end
BW=str2double(get(handles.text26,'String'));
fm=str2double(get(handles.edit2,'String'));
set(handles.edit4,'String',beta);
set(handles.text25,'String',n);
set(handles.text26,'String',2*n*fm);
set(handles.text27,'String',beta*fm);
set(handles.periodo,'String',P);
guidata(hObject, handles);
% --- Executes during object creation, after setting all
properties.
function slider2_CreateFcn(hObject, eventdata, handles)
% hObject
handle to slider2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles
empty - handles not created until after all
CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end

You might also like