function varargout = OFDM_test(varargin)
% OFDM_TEST MATLAB code for OFDM_test.fig
% OFDM_TEST, by itself, creates a new OFDM_TEST or raises the existing
% singleton*.
%
% H = OFDM_TEST returns the handle to a new OFDM_TEST or the handle to
% the existing singleton*.
%
% OFDM_TEST('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in OFDM_TEST.M with the given input arguments.
%
% OFDM_TEST('Property','Value',...) creates a new OFDM_TEST or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before OFDM_test_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to OFDM_test_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help OFDM_test
% Last Modified by GUIDE v2.5 22-Nov-2018 23:50:12
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @OFDM_test_OpeningFcn, ...
'gui_OutputFcn', @OFDM_test_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 OFDM_test is made visible.
function OFDM_test_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 OFDM_test (see VARARGIN)
% Choose default command line output for OFDM_test
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes OFDM_test wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = OFDM_test_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
set(handles.Path,'String',1);
set(handles.SNR,'String',20);
% --- Executes on button press in start.
function start_Callback(hObject, eventdata, handles)
str = get(handles.Modulation_type, 'String');
val = get(handles.Modulation_type,'Value');
switch str{val}
case 'QPSK'
modu_type = 0;
case '16QAM'
modu_type = 1;
end
SNR = str2double(get(handles.SNR,'String'));
if (isnan(SNR))
SNR = 20;
set(handles.SNR,'String',20);
end
pathes = str2double(get(handles.Path,'String'));
if (isnan(pathes))
pathes = 1;
set(handles.Path,'String',1);
end
OP = get(handles.OP_switch, 'Value');
config=OFDMSettings(modu_type, SNR, pathes, 1, 0, 0, OP,1024,8);
Baseband=OFDMSimpleSignalGenerator(config);
OFDM(config,Baseband);
function SNR_Callback(hObject, eventdata, handles)
guidata(hObject, handles);
% --- Executes during object creation, after setting all properties.
function SNR_CreateFcn(hObject, eventdata, handles)
% hObject handle to SNR (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Path_Callback(hObject, eventdata, handles)
guidata(hObject, handles);
% --- Executes during object creation, after setting all properties.
function Path_CreateFcn(hObject, eventdata, handles)
% hObject handle to Path (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in Modulation_type.
function Modulation_type_Callback(hObject, eventdata, handles)
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function Modulation_type_CreateFcn(hObject, eventdata, handles)
% hObject handle to Modulation_type (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes during object creation, after setting all properties.
function axes1_CreateFcn(hObject, eventdata, handles)
% hObject handle to axes1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: place code in OpeningFcn to populate axes1
% --- Executes on button press in BER_curve.
function BER_curve_Callback(hObject, eventdata, handles)
str = get(handles.Modulation_type, 'String');
val = get(handles.Modulation_type,'Value');
comp = get(handles.Compare_switch,'Value');
L = str2double(get(handles.Path,'String'));
switch str{val}
case 'QPSK'
modu_type = 0;
case '16QAM'
modu_type = 1;
end
OFDM_BER_SNR(modu_type, L, comp);
% --- Executes on button press in BER_path.
function BER_path_Callback(hObject, eventdata, handles)
str = get(handles.Modulation_type, 'String');
val = get(handles.Modulation_type,'Value');
comp = get(handles.Compare_switch,'Value');
SNR = str2double(get(handles.SNR,'String'));
switch str{val}
case 'QPSK'
modu_type = 0;
case '16QAM'
modu_type = 1;
end
OFDM_BER_L(modu_type, SNR, comp);
% hObject handle to BER_path (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 OP_switch.
function OP_switch_Callback(hObject, eventdata, handles)
% hObject handle to OP_switch (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of OP_switch
% --- Executes on button press in Compare_switch.
function Compare_switch_Callback(hObject, eventdata, handles)
% hObject handle to Compare_switch (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of Compare_switch
% --- Executes when user attempts to close figure1.
function figure1_CloseRequestFcn(hObject, eventdata, handles)
% hObject handle to figure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: delete(hObject) closes the figure
close(findobj(0,'Name','16QAM Constellation Diagram'));
close(findobj(0,'Nam
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【资源概览】 课程设计 基于Matlab的OFDM仿真源码+部署说明文档.zip课程设计 基于Matlab的OFDM仿真源码+部署说明文档.zip课程设计 基于Matlab的OFDM仿真源码+部署说明文档.zip 【资源说明】 高分项目源码:此资源是在校高分项目的完整源代码,经过导师的悉心指导与认可,答辩评审得分高达95分,项目的质量与深度有保障。 测试运行成功:所有的项目代码在上传前都经过了严格的测试,确保在功能上完全符合预期,您可以放心下载并使用。 适用人群广泛:该项目不仅适合计算机相关专业(如软件工程、计科、区块链、人工智能、电子信息、物联网、通信工程、自动化等)的在校学生和老师,还可以作为毕业设计、课程设计、作业或项目初期立项的演示材料。对于希望进阶学习的小白来说,同样是一个极佳的学习资源。 代码灵活性高:如果您具备一定的编程基础,可以在此代码基础上进行个性化的修改,以实现更多功能。当然,直接用于毕业设计、课程设计或作业也是完全可行的。 欢迎下载,与我一起交流学习,共同进步!
资源推荐
资源详情
资源评论
收起资源包目录
课程设计 基于Matlab的OFDM仿真源码+部署说明文档.zip (24个子文件)
DigiC-Simulation-master
.gitignore 31B
OFDM
OFDMTransferImage.m 833B
rcoswindow.m 362B
qam16.m 762B
demoduqpsk.m 684B
README.adoc 259B
OFDM_test.fig 17KB
OFDM_BER_SNR.m 2KB
OFDMSimpleSignalGenerator.m 124B
QPSK_Demodulation.m 570B
OFDMReceiver.m 3KB
OFDMChannel.m 1KB
OFDMSettings.m 1KB
OFDMTransiver.m 4KB
qpsk.m 532B
OFDM_BER_L.m 2KB
OFDM.m 1KB
demoduqam16.m 910B
QAM16_Demodulation.m 796B
OFDM_test.m 8KB
Go.jpg 32KB
Window.m 344B
部署说明文档.md 13KB
171265889347208773632.zip 416B
共 24 条
- 1
资源评论
IT狂飙
- 粉丝: 4778
- 资源: 2640
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- btstack协议栈实战篇-GATT Server - Heartbeat Counter over GATT
- solution6.bin
- web期末作业设计网页案例.zip
- CLShanYanSDKDataList.sqlite
- 【React框架】教程&案例&相关项目.zip
- RV1126 LVGL移植
- (源码分享)跨年烟花表白源代码
- Solidigm 3D NAND Gen5 (Q5171A) Flash Memory Customer Datasheet D
- Python数据分析与建模库-02科学计算库Numpy01-05合集
- Solidigm 3D NAND Gen 5 (Q5171A) Flash Memory Die
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功