SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
ANTENNA PHYSICAL CHARACTERISTICS USING MATLAB
Our online Tutors are available 24*7 to provide Help with Antenna Physical characteristics
Homework/Assignment or a long term Graduate/Undergraduate Antenna Physical
characteristics Project. Our Tutors being experienced and proficient in Antenna Physical
characteristics ensure to provide high quality Antenna Physical characteristics Homework Help.
Upload your Antenna Physical characteristics Assignment at ‘Submit Your Assignment’ button
or email it to info@assignmentpedia.com. You can use our ‘Live Chat’ option to schedule an
Online Tutoring session with our Antenna Physical characteristics Tutors.
DIPOLE & RECTANGULAR APERTURE ANTENNA
This sample assignments shows Dipole & Rectangular Aperture antenna pattern by Salaheddin
Hosseinzadeh
3D Polar plot for various Dipole and Rectangular Aperture antennas.
Dipole_Aperture_Aid(varargin)
function varargout = Dipole_Aperture_Aid(varargin)
% DIPOLE_APERTURE_AID M-file for Dipole_Aperture_Aid.fig
% DIPOLE_APERTURE_AID, by itself, creates a new DIPOLE_APERTURE_AID or raises the
existing
% singleton*.
%
% H = DIPOLE_APERTURE_AID returns the handle to a new DIPOLE_APERTURE_AID or the
handle to
% the existing singleton*.
%
% DIPOLE_APERTURE_AID('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in DIPOLE_APERTURE_AID.M with the given input arguments.
%
% DIPOLE_APERTURE_AID('Property','Value',...) creates a new DIPOLE_APERTURE_AID or
raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before Dipole_Aperture_Aid_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to Dipole_Aperture_Aid_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 Dipole_Aperture_Aid
% Last Modified by GUIDE v2.5 30-Dec-2010 21:53:47
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Dipole_Aperture_Aid_OpeningFcn, ...
'gui_OutputFcn', @Dipole_Aperture_Aid_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 Dipole_Aperture_Aid is made visible.
function Dipole_Aperture_Aid_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 Dipole_Aperture_Aid (see VARARGIN)
%%__________________________________________________________________
%%____________________Start of the Program__________________________
%%__________________________________________________________________
%Variable Definition Specially Global and Preset ones
% Some values have default values so that it could be sketch by a single
% click
global PhiMax;
PhiMax = 2*pi; % set default Phi
global ThetaMax;
ThetaMax = pi; % set default Theta
global dimension;
dimension = 50; %set default dimension
global Length
Length=1; % set default Length
% Choose default command line output for Dipole_Aperture_Aid
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes Dipole_Aperture_Aid wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = Dipole_Aperture_Aid_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;
% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu1
%%____________________ Gather user information for Phi range
global PhiMax
content = get(hObject,'Value');
switch content
case 1
PhiMax=2*pi;
PhiMax
case 2
PhiMax=1.5*pi;
PhiMax
case 3
PhiMax=pi;
PhiMax
case 4
PhiMax=.5*pi;
PhiMax
otherwise
disp('input wrong'); %% Otherwise condition will never happend
end
% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu1 (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 on selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = get(hObject,'String') returns popupmenu2 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu2
%%____________ Gather user information for Theta ____________________
global ThetaMax
content = get(hObject,'Value'); % returned value is Theta angle , stored in content
switch content
case 1
ThetaMax=pi;
ThetaMax
case 2
ThetaMax=.75*pi;
ThetaMax
case 3
ThetaMax=.5*pi;
ThetaMax
otherwise
disp('Non Above , actually this condition will never ever happen')
end
% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu2 (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
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
%%____________ Returns the dimension of phi & theta matrix assigned by user
global dimension
dimension=str2double(get(hObject,'String'));
dimension=floor(dimension); % as floats arent accepted dimension floored for example
%if dimension ( announced as Quality ) = 112.5 it's gonna turn into 112
% --- 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
% --- 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)
%%_____________ Data Generation Button & its duties listed below________________
%%__ 1_Validating Dimension ( Zero,NaN,Inf ) gonna be amende, if necessery
global ThetaMax
global PhiMax
global dimension
global phi
global theta
if (dimension == 0) % IF . gonna check the dimension validity
dimension=50
disp('Zero precision is not accepted , its set to default of 50')
%dimension %to display the value
elseif(isnan(dimension)==1)
disp('NaN Dimension is not accepted , its set to default of 50')
dimension= 50
elseif(isinf(dimension)==1)
disp('Infinite Dimension is not accepted , its set ot default of 50')
dimension=50
elseif(dimension < 0)
disp('Negative precision is not accepted , its set to default of 50')
dimension=50
elseif(dimension < 40)
disp('!This precision is not recommended!, it`d better increase it.')
end
phi= linspace(0,PhiMax,dimension); %%% Generating phi & theta related to
theta= linspace(0,ThetaMax,dimension); %% user input
%%_ This condition is jut to make 100 % sure , or else this will not happend
if(size(phi)==size(theta))
disp('Data Generation Successful')
else
disp('Data Generation Failed , Try Again This messege will never shows up , unless you do some
magic , LOL')
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
%%___________ Requesting and validating Antenna Length ___________________
global Length
Length=str2double(get(hObject,'String'));
%global Length
if(isnan(Length)== 1 ) % Length validity
disp('Attention!! Length is NaN')
disp('This will illustrate infinitesimal Dipole Pattern!')
Length = eps
elseif( isinf(Length)== 1)
disp('Attention!! Length is Infinite')
disp('This will illustrate Infinite Dipole Pattern!')
Length = Inf
elseif(Length == 0)
disp('Length is Zero')
disp('This will illustrate infinitesimal Dipole Pattern')
Length = eps
elseif(Length == -1)
disp('Attention!! Length is MINUS !! Length changed to default value 1')
length=1
end
%length=str2num(Length);
% --- 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
% --- 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)
%___________________ sketch useing Mesh _____________________
global phi
global theta
global Length
global R
global x
global y
global z
[THETA,PHI]=meshgrid(theta,phi);
R=abs((cos(pi.*Length.*cos(THETA))- cos(pi.*Length))./(sin(THETA)));
x=R.*sin(THETA).*cos(PHI);
y=R.*sin(THETA).*sin(PHI);
z=R.*cos(THETA);
%figure
mesh(x,y,z);
%clear all
set(gca,'PlotBoxAspectRatio',[1,1,1])
axis equal;
xlabel('Axis X');
ylabel('Axis Y');
zlabel('Axis Z');
title(['L = ',num2str(Length),'Lambda'])
% --- 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)
%%__________________ Sketch using Plot3 ___________________________
global phi
global theta
global Length
global R
global x
global y
global z
[THETA,PHI]=meshgrid(theta,phi);
R=abs((cos(Length.*pi.*cos(THETA))- cos(Length.*pi))./(sin(THETA)));
x=R.*sin(THETA).*cos(PHI);
y=R.*sin(THETA).*sin(PHI);
z=R.*cos(THETA);
%figure
plot3(x,y,z);
%clear all
set(gca,'PlotBoxAspectRatio',[1,1,1])
axis equal;
xlabel('Axis X');
ylabel('Axis Y');
zlabel('Axis Z');
title(['L = ',num2str(Length),'Lambda'])
% --- 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)
%______________________ Sketch Using Surf_________________________
global phi
global theta
global Length
global R
global x
global y
global z
[THETA,PHI]=meshgrid(theta,phi);
R=abs((cos(Length.*pi.*cos(THETA))- cos(Length.*pi))./(sin(THETA)));
x=R.*sin(THETA).*cos(PHI);
y=R.*sin(THETA).*sin(PHI);
z=R.*cos(THETA);
%Length
%figure
surf(x,y,z);
%clear all
set(gca,'PlotBoxAspectRatio',[1,1,1])
axis equal;
xlabel ('Axis X');
ylabel ('Axis Y');
zlabel ('Axis Z');
title(['L = ',num2str(Length),'Lambda'])
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%________________Sketch 2Dimension E Plane Using Polar____________________
global phi
global theta
global Length
global r
r=abs((cos(Length.*pi.*cos(phi))- cos(Length.*pi))./(sin(phi)));
%figure
polar(phi,r);
axis equal
title(['L = ',num2str(Length),'Lambda'])
%clear all
function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (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 edit3 as text
global ap_a;
ap_a = str2double(get(hObject,'String')); % returns contents of edit3 as a double
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (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 edit6_Callback(hObject, eventdata, handles)
% hObject handle to edit6 (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 edit6 as text
global ap_b;
ap_b = str2double(get(hObject,'String'));% returns contents of edit6 as a double
% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (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 button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% ploting aperture antenna 3D
global ap_a;
global ap_b;
global phi;
global theta;
[Phi,Theta]=meshgrid(phi,theta);
% ap_a & ap_b are dimensions of the notch
% U = sin(theta).cos(phi) v = sin(theta).sin(phi) for 3D plot
U = sin(Theta).*cos(Phi);
V = sin(Theta).*sin(Phi);
B=2*pi;
% u & v both in lowercase for 2D plot
u = sin(theta).*cos(0);
v = sin(theta).*sin(0);
% rho is 2D polar pattern
rho = abs (sinc(B*ap_a/2.*u).*sinc(B*ap_b/2.*v));
% E for 3D pattern
E = abs( sinc(B*ap_a/2.*U).*sinc(B*ap_b/2.*V));
x = E.*cos(Phi).*sin(Theta);
y = E.*sin(Phi).*sin(Theta);
z = E.*cos(Theta);
% polar plot
plot(rho.*sin(phi),rho.*cos(phi));
set(gca,'PlotBoxAspectRatio',[1,3,1])
xlabel('Axis X');
ylabel('Axis Y');
title(['Rectangular Aperture Antenna Cross Section for '...
,num2str(ap_a),',',num2str(ap_b),' Lambda'])
figure('Name','3D Aperture Plot');
mesh(x,y,z)
set(gca,'PlotBoxAspectRatio',[.5,.5,2])
xlabel('Axis X');
ylabel('Axis Y');
zlabel('Axis Z');
title(['Rectangular Aperture Antenna '...
,num2str(ap_a),',',num2str(ap_b),'Lambda'])
visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215

Weitere ähnliche Inhalte

Was ist angesagt?

Volley lab btc_bbit
Volley lab btc_bbitVolley lab btc_bbit
Volley lab btc_bbitCarWash1
 
Báo cáo nhóm 9
Báo cáo nhóm 9Báo cáo nhóm 9
Báo cáo nhóm 9thanhyu
 
Advance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handlingAdvance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handlingPayal Dungarwal
 
csc 208
csc 208csc 208
csc 208priska
 
Advance Java Programming (CM5I) 1.AWT
Advance Java Programming (CM5I) 1.AWTAdvance Java Programming (CM5I) 1.AWT
Advance Java Programming (CM5I) 1.AWTPayal Dungarwal
 
Kivy Talk Python Meetup Innsbruck 2017.04.25
Kivy Talk Python Meetup Innsbruck 2017.04.25Kivy Talk Python Meetup Innsbruck 2017.04.25
Kivy Talk Python Meetup Innsbruck 2017.04.25Robert Niederreiter
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in javaGoogle
 
Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3martha leon
 
Event handling63
Event handling63Event handling63
Event handling63myrajendra
 
Design pattern - Iterator, Mediator and Memento
Design pattern - Iterator, Mediator and MementoDesign pattern - Iterator, Mediator and Memento
Design pattern - Iterator, Mediator and MementoSean Tsai
 
How do we use hooks
How do we use hooksHow do we use hooks
How do we use hooksJim Liu
 
リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)
リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)
リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)STAIR Lab, Chiba Institute of Technology
 

Was ist angesagt? (20)

Volley lab btc_bbit
Volley lab btc_bbitVolley lab btc_bbit
Volley lab btc_bbit
 
Báo cáo nhóm 9
Báo cáo nhóm 9Báo cáo nhóm 9
Báo cáo nhóm 9
 
Advance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handlingAdvance Java Programming(CM5I) Event handling
Advance Java Programming(CM5I) Event handling
 
Java swing
Java swingJava swing
Java swing
 
csc 208
csc 208csc 208
csc 208
 
Event handling
Event handlingEvent handling
Event handling
 
Advance Java Programming (CM5I) 1.AWT
Advance Java Programming (CM5I) 1.AWTAdvance Java Programming (CM5I) 1.AWT
Advance Java Programming (CM5I) 1.AWT
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Kivy Talk Python Meetup Innsbruck 2017.04.25
Kivy Talk Python Meetup Innsbruck 2017.04.25Kivy Talk Python Meetup Innsbruck 2017.04.25
Kivy Talk Python Meetup Innsbruck 2017.04.25
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
 
Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3Ejemplos Interfaces Usuario 3
Ejemplos Interfaces Usuario 3
 
Operating System
Operating SystemOperating System
Operating System
 
An introduction to MATLAB
An introduction to MATLABAn introduction to MATLAB
An introduction to MATLAB
 
Event handling63
Event handling63Event handling63
Event handling63
 
Design pattern - Iterator, Mediator and Memento
Design pattern - Iterator, Mediator and MementoDesign pattern - Iterator, Mediator and Memento
Design pattern - Iterator, Mediator and Memento
 
28 awt
28 awt28 awt
28 awt
 
How do we use hooks
How do we use hooksHow do we use hooks
How do we use hooks
 
Graphical User Components Part 1
Graphical User Components Part 1Graphical User Components Part 1
Graphical User Components Part 1
 
リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)
リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)
リアクティブプログラミングにおける時変値永続化の試み (第2回ステアラボソフトウェア技術セミナー)
 
Awt
AwtAwt
Awt
 

Ähnlich wie Antenna Physical Characetristics

Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal ProcessingAssignmentpedia
 
Actividad #7 codigo detección de errores (yango colmenares)
Actividad #7 codigo detección de errores (yango colmenares)Actividad #7 codigo detección de errores (yango colmenares)
Actividad #7 codigo detección de errores (yango colmenares)Yango Alexander Colmenares
 
matlab.code.has.docx
matlab.code.has.docxmatlab.code.has.docx
matlab.code.has.docxssuserfe37cb
 
Piano Keyboard Application Project using MATLAB
Piano Keyboard Application Project using MATLABPiano Keyboard Application Project using MATLAB
Piano Keyboard Application Project using MATLABAyush Deval
 
COMUNICACION SERIAL DSPIC30F3014 Y MATLAB
COMUNICACION SERIAL DSPIC30F3014 Y MATLABCOMUNICACION SERIAL DSPIC30F3014 Y MATLAB
COMUNICACION SERIAL DSPIC30F3014 Y MATLABCarlos Buitron Quispe
 
event-handling.pptx
event-handling.pptxevent-handling.pptx
event-handling.pptxGood657694
 
Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...
Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...
Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...dantleech
 
The state of Symfony2 - SymfonyDay 2010
The state of Symfony2 - SymfonyDay 2010The state of Symfony2 - SymfonyDay 2010
The state of Symfony2 - SymfonyDay 2010Fabien Potencier
 
Functional Programming in Java 8
Functional Programming in Java 8Functional Programming in Java 8
Functional Programming in Java 8Omar Bashir
 
Declarative presentations UIKonf
Declarative presentations UIKonfDeclarative presentations UIKonf
Declarative presentations UIKonfNataliya Patsovska
 
Python-GTK
Python-GTKPython-GTK
Python-GTKYuren Ju
 
intro_gui
intro_guiintro_gui
intro_guifilipb2
 
Java 8 lambda expressions
Java 8 lambda expressionsJava 8 lambda expressions
Java 8 lambda expressionsLogan Chien
 
Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...Yao Yao
 
React new features and intro to Hooks
React new features and intro to HooksReact new features and intro to Hooks
React new features and intro to HooksSoluto
 
This is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdfThis is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdfindiaartz
 

Ähnlich wie Antenna Physical Characetristics (20)

Digital Signal Processing
Digital Signal ProcessingDigital Signal Processing
Digital Signal Processing
 
Actividad #7 codigo detección de errores (yango colmenares)
Actividad #7 codigo detección de errores (yango colmenares)Actividad #7 codigo detección de errores (yango colmenares)
Actividad #7 codigo detección de errores (yango colmenares)
 
matlab.code.has.docx
matlab.code.has.docxmatlab.code.has.docx
matlab.code.has.docx
 
Encoder + decoder
Encoder + decoderEncoder + decoder
Encoder + decoder
 
Piano Keyboard Application Project using MATLAB
Piano Keyboard Application Project using MATLABPiano Keyboard Application Project using MATLAB
Piano Keyboard Application Project using MATLAB
 
COMUNICACION SERIAL DSPIC30F3014 Y MATLAB
COMUNICACION SERIAL DSPIC30F3014 Y MATLABCOMUNICACION SERIAL DSPIC30F3014 Y MATLAB
COMUNICACION SERIAL DSPIC30F3014 Y MATLAB
 
event-handling.pptx
event-handling.pptxevent-handling.pptx
event-handling.pptx
 
Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...
Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...
Building and Incredible Machine with Pipelines and Generators in PHP (IPC Ber...
 
The state of Symfony2 - SymfonyDay 2010
The state of Symfony2 - SymfonyDay 2010The state of Symfony2 - SymfonyDay 2010
The state of Symfony2 - SymfonyDay 2010
 
functions
functionsfunctions
functions
 
Android 3
Android 3Android 3
Android 3
 
Functional Programming in Java 8
Functional Programming in Java 8Functional Programming in Java 8
Functional Programming in Java 8
 
Declarative presentations UIKonf
Declarative presentations UIKonfDeclarative presentations UIKonf
Declarative presentations UIKonf
 
Python-GTK
Python-GTKPython-GTK
Python-GTK
 
intro_gui
intro_guiintro_gui
intro_gui
 
Java 8 lambda expressions
Java 8 lambda expressionsJava 8 lambda expressions
Java 8 lambda expressions
 
Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...Lab 2: Classification and Regression Prediction Models, training and testing ...
Lab 2: Classification and Regression Prediction Models, training and testing ...
 
Road to react hooks
Road to react hooksRoad to react hooks
Road to react hooks
 
React new features and intro to Hooks
React new features and intro to HooksReact new features and intro to Hooks
React new features and intro to Hooks
 
This is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdfThis is a C# project . I am expected to create as this image shows. .pdf
This is a C# project . I am expected to create as this image shows. .pdf
 

Mehr von Assignmentpedia

Transmitter side components
Transmitter side componentsTransmitter side components
Transmitter side componentsAssignmentpedia
 
Single object range detection
Single object range detectionSingle object range detection
Single object range detectionAssignmentpedia
 
Sequential radar tracking
Sequential radar trackingSequential radar tracking
Sequential radar trackingAssignmentpedia
 
Radar cross section project
Radar cross section projectRadar cross section project
Radar cross section projectAssignmentpedia
 
Radar application project help
Radar application project helpRadar application project help
Radar application project helpAssignmentpedia
 
Parallel computing homework help
Parallel computing homework helpParallel computing homework help
Parallel computing homework helpAssignmentpedia
 
Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysisAssignmentpedia
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation projectAssignmentpedia
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming projectAssignmentpedia
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlabAssignmentpedia
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1Assignmentpedia
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework HelpAssignmentpedia
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework helpAssignmentpedia
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework HelpAssignmentpedia
 

Mehr von Assignmentpedia (20)

Transmitter side components
Transmitter side componentsTransmitter side components
Transmitter side components
 
Single object range detection
Single object range detectionSingle object range detection
Single object range detection
 
Sequential radar tracking
Sequential radar trackingSequential radar tracking
Sequential radar tracking
 
Resolution project
Resolution projectResolution project
Resolution project
 
Radar cross section project
Radar cross section projectRadar cross section project
Radar cross section project
 
Radar application project help
Radar application project helpRadar application project help
Radar application project help
 
Parallel computing homework help
Parallel computing homework helpParallel computing homework help
Parallel computing homework help
 
Network costing analysis
Network costing analysisNetwork costing analysis
Network costing analysis
 
Matlab simulation project
Matlab simulation projectMatlab simulation project
Matlab simulation project
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming project
 
Links design
Links designLinks design
Links design
 
Image processing project using matlab
Image processing project using matlabImage processing project using matlab
Image processing project using matlab
 
Help with root locus homework1
Help with root locus homework1Help with root locus homework1
Help with root locus homework1
 
Transmitter subsystem
Transmitter subsystemTransmitter subsystem
Transmitter subsystem
 
Computer Networks Homework Help
Computer Networks Homework HelpComputer Networks Homework Help
Computer Networks Homework Help
 
Theory of computation homework help
Theory of computation homework helpTheory of computation homework help
Theory of computation homework help
 
Econometrics Homework Help
Econometrics Homework HelpEconometrics Homework Help
Econometrics Homework Help
 
Video Codec
Video CodecVideo Codec
Video Codec
 
Radar Spectral Analysis
Radar Spectral AnalysisRadar Spectral Analysis
Radar Spectral Analysis
 
Pi Controller
Pi ControllerPi Controller
Pi Controller
 

Kürzlich hochgeladen

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Kürzlich hochgeladen (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Antenna Physical Characetristics

  • 1. ANTENNA PHYSICAL CHARACTERISTICS USING MATLAB Our online Tutors are available 24*7 to provide Help with Antenna Physical characteristics Homework/Assignment or a long term Graduate/Undergraduate Antenna Physical characteristics Project. Our Tutors being experienced and proficient in Antenna Physical characteristics ensure to provide high quality Antenna Physical characteristics Homework Help. Upload your Antenna Physical characteristics Assignment at ‘Submit Your Assignment’ button or email it to info@assignmentpedia.com. You can use our ‘Live Chat’ option to schedule an Online Tutoring session with our Antenna Physical characteristics Tutors. DIPOLE & RECTANGULAR APERTURE ANTENNA This sample assignments shows Dipole & Rectangular Aperture antenna pattern by Salaheddin Hosseinzadeh 3D Polar plot for various Dipole and Rectangular Aperture antennas. Dipole_Aperture_Aid(varargin) function varargout = Dipole_Aperture_Aid(varargin) % DIPOLE_APERTURE_AID M-file for Dipole_Aperture_Aid.fig % DIPOLE_APERTURE_AID, by itself, creates a new DIPOLE_APERTURE_AID or raises the existing % singleton*. % % H = DIPOLE_APERTURE_AID returns the handle to a new DIPOLE_APERTURE_AID or the handle to % the existing singleton*. % % DIPOLE_APERTURE_AID('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in DIPOLE_APERTURE_AID.M with the given input arguments. % % DIPOLE_APERTURE_AID('Property','Value',...) creates a new DIPOLE_APERTURE_AID or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before Dipole_Aperture_Aid_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to Dipole_Aperture_Aid_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 Dipole_Aperture_Aid % Last Modified by GUIDE v2.5 30-Dec-2010 21:53:47
  • 2. % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Dipole_Aperture_Aid_OpeningFcn, ... 'gui_OutputFcn', @Dipole_Aperture_Aid_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 Dipole_Aperture_Aid is made visible. function Dipole_Aperture_Aid_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 Dipole_Aperture_Aid (see VARARGIN) %%__________________________________________________________________ %%____________________Start of the Program__________________________ %%__________________________________________________________________ %Variable Definition Specially Global and Preset ones % Some values have default values so that it could be sketch by a single % click global PhiMax; PhiMax = 2*pi; % set default Phi global ThetaMax; ThetaMax = pi; % set default Theta global dimension; dimension = 50; %set default dimension global Length Length=1; % set default Length % Choose default command line output for Dipole_Aperture_Aid handles.output = hObject;
  • 3. % Update handles structure guidata(hObject, handles); % UIWAIT makes Dipole_Aperture_Aid wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = Dipole_Aperture_Aid_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; % --- Executes on selection change in popupmenu1. function popupmenu1_Callback(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu1 %%____________________ Gather user information for Phi range global PhiMax content = get(hObject,'Value'); switch content case 1 PhiMax=2*pi; PhiMax case 2 PhiMax=1.5*pi; PhiMax case 3 PhiMax=pi; PhiMax case 4 PhiMax=.5*pi; PhiMax otherwise disp('input wrong'); %% Otherwise condition will never happend end
  • 4. % --- Executes during object creation, after setting all properties. function popupmenu1_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu1 (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 on selection change in popupmenu2. function popupmenu2_Callback(hObject, eventdata, handles) % hObject handle to popupmenu2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: contents = get(hObject,'String') returns popupmenu2 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu2 %%____________ Gather user information for Theta ____________________ global ThetaMax content = get(hObject,'Value'); % returned value is Theta angle , stored in content switch content case 1 ThetaMax=pi; ThetaMax case 2 ThetaMax=.75*pi; ThetaMax case 3 ThetaMax=.5*pi; ThetaMax otherwise disp('Non Above , actually this condition will never ever happen') end % --- Executes during object creation, after setting all properties. function popupmenu2_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu2 (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.
  • 5. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end 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 %%____________ Returns the dimension of phi & theta matrix assigned by user global dimension dimension=str2double(get(hObject,'String')); dimension=floor(dimension); % as floats arent accepted dimension floored for example %if dimension ( announced as Quality ) = 112.5 it's gonna turn into 112 % --- 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 % --- 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) %%_____________ Data Generation Button & its duties listed below________________ %%__ 1_Validating Dimension ( Zero,NaN,Inf ) gonna be amende, if necessery global ThetaMax global PhiMax global dimension global phi global theta
  • 6. if (dimension == 0) % IF . gonna check the dimension validity dimension=50 disp('Zero precision is not accepted , its set to default of 50') %dimension %to display the value elseif(isnan(dimension)==1) disp('NaN Dimension is not accepted , its set to default of 50') dimension= 50 elseif(isinf(dimension)==1) disp('Infinite Dimension is not accepted , its set ot default of 50') dimension=50 elseif(dimension < 0) disp('Negative precision is not accepted , its set to default of 50') dimension=50 elseif(dimension < 40) disp('!This precision is not recommended!, it`d better increase it.') end phi= linspace(0,PhiMax,dimension); %%% Generating phi & theta related to theta= linspace(0,ThetaMax,dimension); %% user input %%_ This condition is jut to make 100 % sure , or else this will not happend if(size(phi)==size(theta)) disp('Data Generation Successful') else disp('Data Generation Failed , Try Again This messege will never shows up , unless you do some magic , LOL') 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 %%___________ Requesting and validating Antenna Length ___________________ global Length Length=str2double(get(hObject,'String')); %global Length if(isnan(Length)== 1 ) % Length validity disp('Attention!! Length is NaN') disp('This will illustrate infinitesimal Dipole Pattern!') Length = eps
  • 7. elseif( isinf(Length)== 1) disp('Attention!! Length is Infinite') disp('This will illustrate Infinite Dipole Pattern!') Length = Inf elseif(Length == 0) disp('Length is Zero') disp('This will illustrate infinitesimal Dipole Pattern') Length = eps elseif(Length == -1) disp('Attention!! Length is MINUS !! Length changed to default value 1') length=1 end %length=str2num(Length); % --- 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 % --- 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) %___________________ sketch useing Mesh _____________________ global phi global theta global Length global R global x global y global z [THETA,PHI]=meshgrid(theta,phi); R=abs((cos(pi.*Length.*cos(THETA))- cos(pi.*Length))./(sin(THETA))); x=R.*sin(THETA).*cos(PHI); y=R.*sin(THETA).*sin(PHI);
  • 8. z=R.*cos(THETA); %figure mesh(x,y,z); %clear all set(gca,'PlotBoxAspectRatio',[1,1,1]) axis equal; xlabel('Axis X'); ylabel('Axis Y'); zlabel('Axis Z'); title(['L = ',num2str(Length),'Lambda']) % --- 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) %%__________________ Sketch using Plot3 ___________________________ global phi global theta global Length global R global x global y global z [THETA,PHI]=meshgrid(theta,phi); R=abs((cos(Length.*pi.*cos(THETA))- cos(Length.*pi))./(sin(THETA))); x=R.*sin(THETA).*cos(PHI); y=R.*sin(THETA).*sin(PHI); z=R.*cos(THETA); %figure plot3(x,y,z); %clear all set(gca,'PlotBoxAspectRatio',[1,1,1]) axis equal; xlabel('Axis X'); ylabel('Axis Y'); zlabel('Axis Z'); title(['L = ',num2str(Length),'Lambda']) % --- 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) %______________________ Sketch Using Surf_________________________ global phi global theta global Length global R
  • 9. global x global y global z [THETA,PHI]=meshgrid(theta,phi); R=abs((cos(Length.*pi.*cos(THETA))- cos(Length.*pi))./(sin(THETA))); x=R.*sin(THETA).*cos(PHI); y=R.*sin(THETA).*sin(PHI); z=R.*cos(THETA); %Length %figure surf(x,y,z); %clear all set(gca,'PlotBoxAspectRatio',[1,1,1]) axis equal; xlabel ('Axis X'); ylabel ('Axis Y'); zlabel ('Axis Z'); title(['L = ',num2str(Length),'Lambda']) % --- Executes on button press in pushbutton5. function pushbutton5_Callback(hObject, eventdata, handles) % hObject handle to pushbutton5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) %________________Sketch 2Dimension E Plane Using Polar____________________ global phi global theta global Length global r r=abs((cos(Length.*pi.*cos(phi))- cos(Length.*pi))./(sin(phi))); %figure polar(phi,r); axis equal title(['L = ',num2str(Length),'Lambda']) %clear all function edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (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 edit3 as text global ap_a; ap_a = str2double(get(hObject,'String')); % returns contents of edit3 as a double % --- Executes during object creation, after setting all properties.
  • 10. function edit3_CreateFcn(hObject, eventdata, handles) % hObject handle to edit3 (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 edit6_Callback(hObject, eventdata, handles) % hObject handle to edit6 (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 edit6 as text global ap_b; ap_b = str2double(get(hObject,'String'));% returns contents of edit6 as a double % --- Executes during object creation, after setting all properties. function edit6_CreateFcn(hObject, eventdata, handles) % hObject handle to edit6 (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 button press in pushbutton6. function pushbutton6_Callback(hObject, eventdata, handles) % hObject handle to pushbutton6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % ploting aperture antenna 3D global ap_a; global ap_b; global phi; global theta; [Phi,Theta]=meshgrid(phi,theta);
  • 11. % ap_a & ap_b are dimensions of the notch % U = sin(theta).cos(phi) v = sin(theta).sin(phi) for 3D plot U = sin(Theta).*cos(Phi); V = sin(Theta).*sin(Phi); B=2*pi; % u & v both in lowercase for 2D plot u = sin(theta).*cos(0); v = sin(theta).*sin(0); % rho is 2D polar pattern rho = abs (sinc(B*ap_a/2.*u).*sinc(B*ap_b/2.*v)); % E for 3D pattern E = abs( sinc(B*ap_a/2.*U).*sinc(B*ap_b/2.*V)); x = E.*cos(Phi).*sin(Theta); y = E.*sin(Phi).*sin(Theta); z = E.*cos(Theta); % polar plot plot(rho.*sin(phi),rho.*cos(phi)); set(gca,'PlotBoxAspectRatio',[1,3,1]) xlabel('Axis X'); ylabel('Axis Y'); title(['Rectangular Aperture Antenna Cross Section for '... ,num2str(ap_a),',',num2str(ap_b),' Lambda']) figure('Name','3D Aperture Plot'); mesh(x,y,z) set(gca,'PlotBoxAspectRatio',[.5,.5,2]) xlabel('Axis X'); ylabel('Axis Y'); zlabel('Axis Z'); title(['Rectangular Aperture Antenna '... ,num2str(ap_a),',',num2str(ap_b),'Lambda']) visit us at www.assignmentpedia.com or email us at info@assignmentpedia.com or call us at +1 520 8371215