雷达通信基于matlab GUI相控阵雷达方向图含Matlab源码 1048期

Posted 紫极神光

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了雷达通信基于matlab GUI相控阵雷达方向图含Matlab源码 1048期相关的知识,希望对你有一定的参考价值。

一、简介

1 相控阵列的基本原理
阵列天线有两种基本的形式:一种称为线阵列,所有单元都排列在一条直线上;另一种称为面阵列,辐射单元排列在一个面上,通常是一个平面。





总之,在波束扫描时,扫描的偏角θ0越大,波束越宽,天线增益越小,因而天线波束性能变差。一般,天线扫描角限制在60°以内。

2 相控阵雷达的基本组成

二、源代码

function varargout = xiangkongzhen1(varargin)
% XIANGKONGZHEN1 MATLAB code for xiangkongzhen1.fig
%      XIANGKONGZHEN1, by itself, creates a new XIANGKONGZHEN1 or raises the existing
%      singleton*.
%
%      H = XIANGKONGZHEN1 returns the handle to a new XIANGKONGZHEN1 or the handle to
%      the existing singleton*.
%
%      XIANGKONGZHEN1('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in XIANGKONGZHEN1.M with the given input arguments.
%
%      XIANGKONGZHEN1('Property','Value',...) creates a new XIANGKONGZHEN1 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before xiangkongzhen1_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to xiangkongzhen1_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 xiangkongzhen1

% Last Modified by GUIDE v2.5 28-Apr-2021 16:47:17

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @xiangkongzhen1_OpeningFcn, ...
                   'gui_OutputFcn',  @xiangkongzhen1_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin1)
    gui_State.gui_Callback = str2func(varargin1);
end

if nargout
    [varargout1:nargout] = gui_mainfcn(gui_State, varargin:);
else
    gui_mainfcn(gui_State, varargin:);
end
% End initialization code - DO NOT EDIT


% --- Executes just before xiangkongzhen1 is made visible.
function xiangkongzhen1_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 xiangkongzhen1 (see VARARGIN)

% Choose default command line output for xiangkongzhen1
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes xiangkongzhen1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = xiangkongzhen1_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
varargout1 = handles.output;


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
N=str2num(get(handles.edit1,'String'));
a=str2num(get(handles.edit3,'String'));
thetaB=str2num(get(handles.edit4,'String'));
thetaB1=thetaB/180*pi
theta=-pi:pi/10791:pi;
sum1=0;
for i=0:N-1
    y1=exp(1j*2*pi*i*a*(sin(theta)-sin(thetaB1)));   
    sum1=sum1+y1;
end
sum=abs(sum1);
maxval=max(sum);
sum=sum./maxval; 
axes(handles.axes1);
plot(theta/pi*180,sum,'b');
xlim([-180 180]);
ylim([0 1])
title('线性阵列的归一化幅度图');
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
N=str2num(get(handles.edit1,'String'));
a=str2num(get(handles.edit3,'String'));
thetaB=str2num(get(handles.edit4,'String'));
thetaB1=thetaB/180*pi
theta=-pi:pi/10791:pi;
sum1=0;
for i=0:N-1
    y1=exp(1j*2*pi*i*a*(sin(theta)-sin(thetaB1)));   
    sum1=sum1+y1;
end
axes(handles.axes2);
polar(theta,sum1,'-b');
title('线性阵列方向图');


% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
N=str2num(get(handles.edit1,'String'));
a=str2num(get(handles.edit3,'String'));
thetaB=str2num(get(handles.edit4,'String'));
thetaB1=thetaB/180*pi
theta=-pi:pi/10791:pi;
sum1=N*pi*a.*(sin(theta)-sin(thetaB1));
sum2=N*sin(sum1)./sum1;
sum=abs(sum2);
maxval=max(sum);
sum=sum./maxval;                       
axes(handles.axes1);
plot(theta/pi*180,sum,'r');
xlim([-180 180]);
ylim([0 1])
title('线性阵列的归一化幅度图(取sinc近似)');
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
N=str2num(get(handles.edit1,'String'));
a=str2num(get(handles.edit3,'String'));
thetaB=str2num(get(handles.edit4,'String'));
thetaB1=thetaB/180*pi
theta=-pi:pi/10791:pi;
sum1=N*pi*a.*(sin(theta)-sin(thetaB1));
sum2=N*sin(sum1)./sum1;
axes(handles.axes2);
polar(theta,sum2,'-r');
title('线性阵列方向图(取sinc近似)')



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
globel N;
N=get(handles.edit1,'String');

% --- 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

三、运行结果



四、matlab版本及参考文献

1 matlab版本
2014a

2 参考文献
[1] 沈再阳.精通MATLAB信号处理[M].清华大学出版社,2015.
[2]高宝建,彭进业,王琳,潘建寿.信号与系统——使用MATLAB分析与实现[M].清华大学出版社,2020.
[3]王文光,魏少明,任欣.信号处理与系统分析的MATLAB实现[M].电子工业出版社,2018.
[4]李树锋.基于完全互补序列的MIMO雷达与5G MIMO通信[M].清华大学出版社.2021
[5]何友,关键.雷达目标检测与恒虚警处理(第二版)[M].清华大学出版社.2011

以上是关于雷达通信基于matlab GUI相控阵雷达方向图含Matlab源码 1048期的主要内容,如果未能解决你的问题,请参考以下文章

雷达通信基于matlab粒子群算法优化综合线阵低副瓣方向图含Matlab源码 1962期

雷达通信基于matlab频控阵波束方向图特性仿真含Matlab源码 2193期

雷达波位编排基于matlab相控阵雷达的波位编排仿真含Matlab源码 2251期

雷达通信基于matlab GUI雷达脉冲压缩含Matlab源码 303期

相控阵雷达天线不同阵列的特性matlab仿真分析——有限扫描阵,稀疏阵,多波束阵,共形阵

雷达通信基于matlab线性调频脉冲雷达仿真含Matlab源码 2104期