Introduction to Object-Oriented Programming in MATLAB(R) Webinar
09 Apr 2009
19 Dec 2011)
Files from the "Introduction to Object-Oriented Programming in MATLAB(R)" Webinar.
%% Analyze Sensor Design
% We explore a sensor design for a far-field staring array.
% The array is designed to detect the angle of arrival (AoA)
% for a distant object emitting a signal of some frequency.
% The system is tested with multiple targets. Different
% sensor configurations can be explored to investigate the
% accuracy of AoA detection, as well as the ability of the
% sensor to resolve multiple targets.
% Copyright 2008 The MathWorks, Inc.
%% Clear Workspace
%% Define Radio Beacon
signal.spdOfLight = 3e8 ;
signal.freq = 12e7 ;
signal.wavelength = signal.spdOfLight/signal.freq ;
signal.amp = 1 ;
%% Define balloons
balloon(1) = target( -10, 1e8, signal) ;
balloon(2) = target( 20, 1e8, signal) ;
balloon(3) = target( 25, 1e8, signal) ;
%% Define Sensor Array
staringArray = sensor() ;
%% Compute Angles of Arrival
arrivalAngles = staringArray.computeAoA(balloon) ;