资源简介
基于MATLAB+GUI常用数字调制方式仿真模型

代码片段和文件信息
function varargout = digital_modulation(varargin)
%DIGITAL_MODULATION
%Author: leslieyao
%leslieyao2000@yahoo.com.cn
%Loja (Ecuador)
%For more information visit: www.miniyao.cn
%Last Modified by GUIDE v2.5 25-Jan-2009 22:07:45
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @digital_modulation_OpeningFcn ...
‘gui_OutputFcn‘ @digital_modulation_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before digital_modulation is made visible.
function digital_modulation_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% 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 digital_modulation (see VARARGIN)
hold off;
axes(handles.axes1);
h=[1 1 0 1 0 0 1 1 1 0];
hold off;
bit=[];
for n=1:2:length(h)-1;
if h(n)==0 & h(n+1)==1
se=[zeros(150) ones(150)];
elseif h(n)==0 & h(n+1)==0
se=[zeros(150) zeros(150)];
elseif h(n)==1 & h(n+1)==0
se=[ones(150) zeros(150)];
elseif h(n)==1 & h(n+1)==1
se=[ones(150) ones(150)];
end
bit=[bit se];
end
plot(bit‘LineWidth‘1.5);grid on;
axis([0 500 -1.5 1.5]);
%*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
axes(handles.axes3)
hold off;
fc=30;
g=[1 1 0 1 0 0 1 1 1 0]; %modulante
n=1;
while n<=length(g)
if g(n)==0
tx=(n-1)*0.1:0.1/100:n*0.1;
p=(1)*sin(2*pi*fc*tx);
plot(txp‘LineWidth‘1.5);grid on;
hold on;
else
tx=(n-1)*0.1:0.1/100:n*0.1;
p=(2)*sin(2*pi*fc*tx);
plot(txp‘LineWidth‘1.5);grid on;
hold on;
end
n=n+1;
end
% Choose default command line output for digital_modulation
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes digital_modulation wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = digital_modulation_OutputFcn(hobject eventdata handles)
% varargout cell array for returning
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4347 2009-05-20 16:51 基于MATLAB+GUI常用数字调制方式仿真模型\digital_modulation.fig
文件 19120 2009-05-20 16:45 基于MATLAB+GUI常用数字调制方式仿真模型\digital_modulation.m
目录 0 2014-02-24 16:22 基于MATLAB+GUI常用数字调制方式仿真模型
----------- --------- ---------- ----- ----
23467 3
- 上一篇:大林控制算法的matlab程序代码使用
- 下一篇:Rssi Matlab仿真程序
相关资源
- 串行级联cpm系统MATLAB仿真
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 阵列天线的matlab仿真
- 天线阵的波束形成在MATLAB仿真程序及
- 引导图像滤波器 Matlab实现
- OFDM系统MATLAB仿真代码
- 用matlab实现的多站定位系统性能仿真
- 用MATLAB(BPSK仿真 直接扩频)
- GPS卫星轨道动态仿真MATLAB
- MATLAB_dct
- CRC循环冗余校验的matlab仿真程序
- MATLAB实现混沌图像加密仿真程序
- (7,4)循环码-信道编码的matlab仿真
- Alamouti编码2X2仿真(MATLAB)
- 小波神经网络Matlab交通仿真程序
- qam 用matlab实现qam仿真的程序
- MATLAB六自由度弹道仿真程序
- MATLAB实现弹道仿真
- MIMO雷达DOA估计中的克拉美罗界计算
- Boost电路的MATLAB仿真
- 基于气动力的导弹姿态控制(附MATL
- 有源电力滤波器的Matlab仿真_高勇
- 3点GPS定位MATLAB仿真
- 全面详解LTE MATLAB建模、仿真与实现
- MATLAB车流仿真 包括跟驰、延误
- 一维光子晶体MATLAB仿真代码吸收率折
- Matlab锁相环仿真-Phase Locked Loop.rar
-
基于Simuli
nk的电动助力转向控制策略 - 基于MATLAB的OFDM系统仿真及分析
- MATLAB电机仿真精华50例源代码.zip
评论
共有 条评论