Documente Academic
Documente Profesional
Documente Cultură
% --- Outputs from this function are returned to the command line.
function varargout = filtrosdebanda_OutputFcn(hObject, eventdata,
handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject
handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
ws=240000;
w1=40000;
w2=160000;
atma=3;
atmi=20;
raiz=1.778;
amin=(10^(atmi/10))-1
amax=(10^(atma/10))-1
bw=(w2-w1)
wo=(w1*w2)^0.5
qw=(bw/wo)
norm=qw*(((ws/wo)-(wo/ws))^-1)
n=((log10(amin/amax))/(2*log10(norm)))
m=redondeo(n)
i=4
ge=2*sin((((2*i)-1)*pi)/(2*m));
c2=((qw*ge)/(rl*wo));
set(handles.text10,'String',c2);
% hObject
handle to pushbutton18 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
atmi=20;
raiz=1.778;
amin=(10^(atmi/10))-1
amax=(10^(atma/10))-1
bw=(w2-w1)
wo=(w1*w2)^0.5
qw=(bw/wo)
norm=qw*(((ws/wo)-(wo/ws))^-1)
n=((log10(amin/amax))/(2*log10(norm)))
m=redondeo(n)
i=4
ge=2*sin((((2*i)-1)*pi)/(2*m));
l2=((rl)/(qw*wo*ge));
set(handles.text12,'String',l2);
% hObject
handle to pushbutton20 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
bw=(w2-w1)
wo=(w1*w2)^0.5
qw=(bw/wo)
norm=qw*(((ws/wo)-(wo/ws))^-1)
n=((log10(amin/amax))/(2*log10(norm)))
m=redondeo(n)
i=3
ge=2*sin((((2*i)-1)*pi)/(2*m));
c4=-(1/(qw*rl*wo*ge));
set(handles.text14,'String',c4);
% hObject
handle to pushbutton22 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
n=((log10(amin/amax))/(2*log10(norm)))
m=redondeo(n)
i=3
ge=2*sin((((2*i)-1)*pi)/(2*m));
l4=-((rl*ge*qw)/(wo));
set(handles.text16,'String',l4);
% hObject
handle to pushbutton24 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles
structure with handles and user data (see GUIDATA)
% hObject
% eventdata
% handles
% handles
% handles