% --- Executes on button press in pushbutton_slb_close.
function pushbutton_slb_close_Callback(hObject, eventdata, handles) set(handles.panel4,'Visible','off');
% --- Executes on selection change in listbox_slb.
function listbox_slb_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end
% --- Executes during object creation, after setting all properties. function edit_slb_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end
% --- Executes on button press in pushbutton_plot_pj.
function pushbutton_plot_pj_Callback(hObject, eventdata, handles) mxs=str2num(get(handles.edit_xy,'String')); [y,t]=NRZ(mxs); axes(handles.axes_fs) plot(t,y);
max_y=max(y); min_y=min(y);
axis([0 10 min_y-0.1 max_y+0.1]); global s_st1;
global f_mx; for j=1:1000
s_mx(j)=s_st1(76+15*j); end
s_mx=sign(s_mx); s_mx=(s_mx+1)/2; s_mx1=s_mx(:,1:10); [y,t]=NRZ(mxs); axes(handles.axes_js) plot(t,y);
max_y=max(y); min_y=min(y);
axis([0 10 min_y-0.1 max_y+0.1]); k=0;
for i=1:1000
if (f_mx(i)-s_mx(i))>0.5 k=k+1; else end end
set(handles.edit_pe,'string',k);
b=get(handles.radiobutton_noise,'value');
30
if b==1
a=str2num(get(handles.edit_noise,'string')); set(handles.edit_snr,'string',a); else
set(handles.edit_snr,'string','?T??éù'); end
% --- Executes on button press in pushbutton_close_pj.
function pushbutton_close_pj_Callback(hObject, eventdata, handles) set(handles.panel5,'Visible','off');
function edit_snr_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties. function edit_snr_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end
function edit_pe_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end;
sigexpand.m
function [out]=sigexpand(d,M) N=length(d); out=zeros(M,N); out(1,:)=d;
out=reshape(out,1,M*N);
31