基于MATLAB的数字基带传输系统(8)

2019-05-24 14:27

% --- 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


基于MATLAB的数字基带传输系统(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:最新初中人教版七年级数学上册课题:余角和补角公开课教案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: