资源简介
模拟调制的实现,FM AM ssb dsb vsb
代码片段和文件信息
% Removing all variables functions and MEX-files from memory leaving the
% workspace empty.
clear all
% Deleting all figures whose handles are not hidden.
close all
% Deleting all figures including those with hidden handles.
close all hidden
% Clearing all input and output from the Command Window display giving us a clean screen.
clc
% Creating an analog input object ‘ai‘.
ai = analoginput (‘winsound‘);
% Adding a hardware channel to an analog input object ‘ai‘.
channel_1 = addchannel (ai1‘channel_1‘);
% Specifying the per-channel rate (in samples/second) that the analog input ‘ai‘
% subsystem converts data. ‘ai‘ subsystems convert analog data to digital
% data.
ai.SampleRate = 8000;
% Time interval for recording speech signal.
Duration = 5;
% Setting object ‘ai‘ properties.
set (ai‘TriggerChannel‘channel_1);
set (ai‘TriggerType‘‘Software‘);
set (ai‘TriggerCondition‘‘Falling‘);
set (ai‘TriggerConditionValue‘0.001);
set(ai ‘SamplesPerTrigger‘ Duration * 8000);
start(ai);
% Halting execution temporarily for certain time.
pause (Duration);
% Extracting data time and event information from the data acquisition
% engine. The given command returns data as sample-time pairs. Time is an
% m-by-1 array of reltive time values where m is the number of samples
% returned. Relative time is measured with respect to the first sample
% loged by the data acquisition engine.
[data time] = getdata (ai);
% Plotting the data sequence ‘data‘ at the values specified in ‘time‘.
stem (timedata);
% Acquiring data from an analog input device.
while (strcmp(ai.Running‘On‘))
end
% Deleting analog input object ‘ai‘.
delete (ai);
% Assigning acquired data to a variable ‘x‘.
x = data;
% Fs is the sampling rate.
Fs = 8000;
% Defining carrier frequency ‘Fc‘.
Fc = 500;
% Generating a carrier signal ‘Cs‘ through linearly spaced vectors.
Cs = cos(linspace (02*pi*FcDuration*8000));
% Creating an analog output object ‘ao‘.
ao = analogoutput(‘winsound‘);
% Adding a hardware channel to an analog output object ‘ao‘.
channel_2 = addchannel(ao1);
% Applying the amplitude modulation concept to variable ‘x‘ by multiplying
% it with carrier signal ‘Cs‘ after taking transpose.
% AmpMod = amod(xFcFs‘amdsb-sc‘numden);(ALTERNATIVE APPROACH)
AmpMod = x‘.*Cs;
% Demodulating the signal.
% DeAmpMod = (1/2).*(ademod(AmpModFcFs‘amdsb-sc‘numden));
% (ALTERNATIVE APPROACH)
DeAmpMod = AmpMod.*Cs;
% Designing butterworth low pass filter.
[numden] = butter(2.8);
FilteredOutput = filter(numdenDeAmpMod);
% Plotting the input speech signal ‘data‘.
subplot(221);
axis normal;
plot(data);
grid on;
title(‘Initial Speech Signal‘);
xlabel(‘Samples‘);
ylabel(‘Speech Signal‘);
% Plotting the modulated speech signal ‘AmpMod‘.
subplot(222);
axis normal;
plot(AmpMod);
title(‘Modulated Speech Signal‘)
xlabel(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 636416 2009-11-24 08:40 MATLAB编程与系统仿真.ppt
文件 25600 2009-11-30 16:03 MATLAB综合实验.doc
文件 39336 2009-12-31 11:29 MATLAB\AM-FM-modulation.rar
文件 3779 2004-10-21 03:11 MATLAB\Amplitude_Modulation.m
文件 449 2002-08-03 01:34 MATLAB\FM.m
文件 1074 2009-12-31 11:28 MATLAB\FM.zip
文件 1515 2009-12-31 15:51 MATLAB\FMdemod.asv
文件 1515 2009-12-31 15:55 MATLAB\FMdemod.m
文件 4132 2004-11-08 19:23 MATLAB\Frequency_Modulation1.m
文件 42442 2008-06-15 22:30 MATLAB\loadFile.do.htm
文件 102 2008-06-15 22:30 MATLAB\loadFile.do_files\10th.png
文件 105 2008-06-15 22:30 MATLAB\loadFile.do_files\50th.png
文件 105 2008-06-15 22:30 MATLAB\loadFile.do_files\60th.png
文件 96 2008-06-15 22:30 MATLAB\loadFile.do_files\90th.png
文件 646 2008-06-15 22:30 MATLAB\loadFile.do_files\blue_band_536x5.gif
文件 57 2008-06-15 22:30 MATLAB\loadFile.do_files\bullet.gif
文件 6989 2008-06-15 22:30 MATLAB\loadFile.do_files\Captcha.htm
文件 10462 2008-06-15 22:30 MATLAB\loadFile.do_files\cmnty1.css
文件 70 2008-06-15 22:30 MATLAB\loadFile.do_files\doc.gif
文件 97 2008-06-15 22:30 MATLAB\loadFile.do_files\dots_rnav.gif
文件 152 2008-06-15 22:30 MATLAB\loadFile.do_files\dots_rnav_top.gif
文件 64 2008-06-15 22:30 MATLAB\loadFile.do_files\exclamation.gif
文件 145 2008-06-15 22:30 MATLAB\loadFile.do_files\fullstar.gif
文件 145 2008-06-15 22:30 MATLAB\loadFile.do_files\fullstar_grey.gif
文件 117 2008-06-15 22:30 MATLAB\loadFile.do_files\ltblue_top_nav_trans.gif
文件 155 2008-06-15 22:30 MATLAB\loadFile.do_files\mail_brdr.gif
文件 2569 2008-06-15 22:30 MATLAB\loadFile.do_files\mlc_logo.gif
文件 64 2008-06-15 22:30 MATLAB\loadFile.do_files\question.gif
文件 43 2008-06-15 22:30 MATLAB\loadFile.do_files\s41389834302452.gif
文件 3296 2008-06-15 22:30 MATLAB\loadFile.do_files\site3.css
............此处省略26个文件信息
评论
共有 条评论