t=0:0.001:1; amp=1; f_1=20; %f1=20Hz f_2=50; %f2=50Hz fp=4; carrier_1=sin(2*pi*f_1*t); carrier_2=sin(2*pi*f_2*t); Signal=amp.*square(2*pi*fp*t)+amp;% Modulated_S=zeros(1000:1); for i=0:1000 if Signal(i+1)==0 Modulated_S(i+1)=carrier_2(i+1); els...
% 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 GUI_2FSK (see VARARGIN) % Choose default command line output for GUI_2FSK handles.output = hObj...
运用MATLAB语言模拟实现了数字信号的FSK调制、低通滤波与抽样判决. 2 部分代码 function varargout = GUI_2FSK(varargin) % GUI_2FSK MATLAB code for GUI_2FSK.fig % GUI_2FSK, by itself, creates a new GUI_2FSK or raises the existing % singleton*. % % H = GUI_2FSK returns the handle to a...
Extended Capabilities C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™. Version HistoryIntroduced before R2006a expand all R2024a: Add code generation support See Also fskmod | pskmod | pskdemod Topics Digital Baseband ModulationWhy...
(i)*t); % end Bark_code=[1,1,1,-1,1]; L_B=length(Bark_code); for i=1:L_B if Bark_code(i)==1; pha=0; else pha=pi; end s_Bark((i-1)*length(t)/L_B+1:i*length(t)/L_B)=exp(j*pha);%.*exp(2*j*pi*f0*tl((i-1)*length(t)+1:i*length(t))) end for ...
1.软件版本 MATLAB2013b 2.本算法理论知识 3.核心代码 NUMS = 20000; Bits = round(rand(1,NUMS)>=0.5); f1 = 1; f2 = 2; Scale= 50; t = 0:1/Scale:1-1/Scale; As = 1; %FSK Bits0 = sin(2*pi*f1*t); Bits0 = Bits0/sqrt(sum(Bits0.^2)); ...
Uc = zeros(1,code_len + 1); accumulator = 0; %码环所用的参数 G3=1; G4=0.1; Kc2=1; err_tao=zeros(1,code_len); err_tao_on_time=zeros(1,code_len); e_tao=zeros(1,code_len); accumulator2 = 0; start_diff=0; for k = 1 : code_len-1 n=k*32; %取样最佳采样时刻 nco...
【数字信号调制】基于FSK实现信号调制解调含Matlab源码(matlab调制信号仿真教程) 1 简介 运用MATLAB语言模拟实现了数字信号的FSK调制、低通滤波与抽样判决. 2 部分代码 function varargout = GUI_2FSK(varargin)% GUI_2FSK MATLAB code for GUI_2FSK.fig% GUI_2FSK, by itself, creates a new GUI_2FSK or rai...
code=zeros(length(a),nu); fori=1:length(a) forj=(nu-1):-1:0 if(fix(b_quan(i)/(2^j))==1) code(i,(nu-j))=1; b_quan(i)=b_quan(i)-2^j; end end end bitstorm=[]; fori=1:length(code) bitstorm=[bitstorm,code(i,:)]; end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
code = zeros(length(a),nu); for i = 1:length(a) for j = (nu-1):-1:0 if (fix(b_quan(i)/(2^j))==1) code(i,(nu-j)) = 1; b_quan(i) = b_quan(i)-2^j; end end end bitstorm = []; for i = 1:length(code) bitstorm = [bitstorm,code(i,:)]; end % % %...