【数字信号调制】基于PCM实现信号编码调制含Matlab源码(pcm编码例题)

网友投稿 404 2022-09-03


【数字信号调制】基于PCM实现信号编码调制含Matlab源码(pcm编码例题)

1 简介

所谓的PCM(pulse code modulation)编码指的是把模拟电视(视频或音频)信号,通过取样(时间上离散化)、量化(幅度上离散化)处理后变换成在时间、幅度上均离散化的信号,再用二进制数码表示的脉冲编码调制信号(PCM),如图1所示.

2 部分代码

function varargout = PCM(varargin)% PCM M-file for PCM.fig% PCM was designed in order to show how PCM works%% To simplify the undesrtanding of this method, the program first takes% a sine wave. Then you can choose a sampling scheme, and you can see% the output of the sampler. You can choose one out of three sampling % methods.% If you choose natural sampling; then you will have the chance to modify% the sampling window, and see the effects of this change in the output of% the sampler.%% Once you got the sampled signal you can quantize it by a method that is % known as two rules and an alorithm.% The option Squeezing and Stretching shows the best G(x) tha minimizes % the MSE. You can better understand this using the book% Telecommunications Demystified written by Carl Nassar. You can find% information about this on Chapter four of that book. % You can edit the bit's number and the number of iterations of the% algorithm. The bigger the number of bits, the smaller the MSE.% The picture shows the signal after quantization, the first iteration% in the quantization process and the output of the quantizer% % Then, by pressing the Bit Stream button you will see the PCM output% of the signal that you have selected in the input area.% % --------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles)% hObject handle to Untitled_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)helpdlg('In order to understand this program in a deeper way, it is desirable to have the book Telecommunications Demystified of Carl Nassar, it is possible to have an electronic version of the book. You can work with the chapter four of the book.', 'Recomendations');% --------------------------------------------------------------------function Untitled_2_Callback(hObject, eventdata, handles)% hObject handle to Untitled_2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --- Executes on button press in pushbutton7.function pushbutton7_Callback(hObject, eventdata, handles)% hObject handle to pushbutton7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

3 仿真结果

4 参考文献

[1]郭慧. 基于PCM编码的模拟信号数字化实现[J]. 微型机与应用, 2017, 36(2):3.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:【数字信号调制】基于FSK实现信号调制解调含Matlab源码(matlab调制信号仿真教程)
下一篇:mybatis动态SQL if的test写法及规则详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~