function varargout = VOFDM(varargin)
% VOFDM MATLAB code for VOFDM.fig
% VOFDM, by itself, creates a new VOFDM or raises the existing
% singleton*.
%
% H = VOFDM returns the handle to a new VOFDM or the handle to
% the existing singleton*.
%
% VOFDM('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in VOFDM.M with the given input arguments.
%
% VOFDM('Property','Value',...) creates a new VOFDM or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before VOFDM_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to VOFDM_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 VOFDM
% Last Modified by GUIDE v2.5 11-Jan-2017 19:32:30
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @VOFDM_OpeningFcn, ...
'gui_OutputFcn', @VOFDM_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 VOFDM is made visible.
function VOFDM_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 VOFDM (see VARARGIN)
% Choose default command line output for VOFDM
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes VOFDM wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = VOFDM_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)
varargout{1} = handles.output;
ha=axes('units','normalized','position',[0 0 1 1]);
uistack(ha,'down')
II=imread('1.png');
image(II)
colormap gray
set(ha,'handlevisibility','off','visible','off');
axes(handles.axes1);
cla reset
% --- Executes on button press in shuju.
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (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 edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (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 radiobutton1_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton1 (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 radiobutton1
function shuju_Callback(hObject, eventdata, handles)
% hObject handle to shuju (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
baseband_out=importdata('data.mat');
stem(handles.axes1,baseband_out(1:100));
% --- Executes on button press in radiobutton1.
% --- Executes on button press in bianma.
function bianma_Callback(hObject, eventdata, handles)
% hObject handle to bianma (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 tiaozhi.
function tiaozhi_Callback(hObject, eventdata, handles)
% hObject handle to tiaozhi (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
complex_carrier_matrix=importdata('complex_carrier_matrix.mat');
plot(handles.axes2,complex_carrier_matrix,'*r');%16QAM调制后星座图
title(handles.axes2,'16QAM调制后星座图')
axis(handles.axes2,[-4, 4, -4, 4]);
grid(handles.axes2,'on')
% --- Executes on button press in baohujiange.
function baohujiange_Callback(hObject, eventdata, handles)
% hObject handle to baohujiange (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
time_wave_matrix_cp=importdata('time_wave_matrix_cp.mat');
plot(handles.axes2,time_wave_matrix_cp(1,:),'r');
title(handles.axes2,'信道1的加循环前缀后缀时域波形')
grid(handles.axes2,'on')
plot(handles.axes1,time_wave_matrix_cp(1,:),'r');
grid(handles.axes1,'on')
% --- Executes on button press in jiachuang.
function jiachuang_Callback(hObject, eventdata, handles)
% hObject handle to jiachuang (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% set(handles.axes6,'visible','on')
windowed_time_wave_matrix_cp=importdata('windowed_time_wave.mat');
plot(handles.axes1,windowed_time_wave_matrix_cp(1,:),'g');
hold(handles.axes1,'off')
grid(handles.axes1,'on')
% --- Executes on button press in fangzheng.
function fangzheng_Callback(hObject, eventdata, handles)
% hObject handle to fangzheng (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
b=get(handles.checkbox1,'value');
a=get(handles.radiobutton1,'value');
carrier_count=str2num(get(handles.edit1,'string'));
symbols_per_carrier=str2num(get(handles.edit2,'string'));
IFFT_bin_length=str2num(get(handles.edit8,'string'));
PrefixRatio=str2num(get(handles.edit6,'string'));
beta=str2num(get(handles.edit7,'string'));
SNR=str2num(get(handles.edit5,'string'));
bits_per_symbol=4;
baseband_out_length = carrier_count * symbols_per_carrier * bits_per_symbol;%所输入的
没有合适的资源?快使用搜索试试~ 我知道了~
OFDM.zip_OFDM 电力载波_power line _电力 载波 OFDM_电力线_电力通讯
共26个文件
mat:14个
m:6个
asv:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 173 浏览量
2022-07-14
10:22:09
上传
评论
收藏 685KB ZIP 举报
温馨提示
电力线载波通讯OFDM调制解调可视化实现;内含有matlabGUI程序
资源详情
资源评论
资源推荐
收起资源包目录
OFDM.zip (26个子文件)
OFDM
time_wave_matrix.mat 54KB
IFFT_modulation.mat 409B
qam16.m 731B
b.mat 247B
demoduqam16.m 895B
VOFDM.m 19KB
baseband_in.mat 2KB
1.png 142KB
complex_carrier_matrix.mat 2KB
Rx_complex_carrier_matrix.mat 43KB
ofdmm.m 7KB
time_wave_matrix_cp.mat 69KB
rx_data.mat 68KB
ofdmm.asv 7KB
tx.mat 64KB
average.mat 15KB
rcoswindow.m 376B
windowed_time_wave.mat 69KB
VOFDM.asv 18KB
data.mat 2KB
shi.asv 2KB
ofdm.m 8KB
ofdm.asv 8KB
Rx_data_matrix.mat 69KB
Rx_data_complex_matrix.mat 54KB
VOFDM.fig 13KB
共 26 条
- 1
weixin_42651887
- 粉丝: 79
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0