SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Dernier (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

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