Code covered by the BSD License
-
computeAoA(sensor,arrayData)
COMPUTEAOA Estimate the direction of arrival of the sources in the
-
computeAoA(sensor,arrayData)
COMPUTEAOA Estimate the direction of arrival of the sources in the
-
hhh=vline(x,in1,in2,in3)
function h=vline(x, linetype, label)
-
hhh=vline(x,in1,in2,in3)
function h=vline(x, linetype, label)
-
hhh=vline(x,in1,in2,in3)
function h=vline(x, linetype, label)
-
hhh=vline(x,in1,in2,in3)
function h=vline(x, linetype, label)
-
hhh=vline(x,in1,in2,in3)
function h=vline(x, linetype, label)
-
sensorSignal(target, sensor)
Copyright 2008 The MathWorks, Inc.
-
sensorSignal(target, sensor)
Copyright 2008 The MathWorks, Inc.
-
movingTarget
-
sensor
Helper Sub-Functions for Class Methods
-
sensor
Helper Sub-Functions for Class Methods
-
sensor
Helper Sub Functions for Class Methods
-
target
-
target
-
target
-
target
-
analyzeData.m
-
analyzeData.m
-
analyzeData.m
-
analyzeData.m
-
analyzeData.m
-
View all files
from
Introduction to Object-Oriented Programming in MATLAB(R) Webinar
by Jiro Doke
Files from the "Introduction to Object-Oriented Programming in MATLAB(R)" Webinar.
|
| analyzeData.m |
%% 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
clear all
close all
%% Define Radio Beacon
signal.spdOfLight = 3e8 ;
signal.freq = 12e7 ;
signal.wavelength = signal.spdOfLight/signal.freq ;
signal.amp = 1 ;
%% Define Aircraft
balloon{1} = target(-10, 1e8, signal) ;
balloon{2} = target( 20, 1e8, signal) ;
balloon{3} = movingTarget( 25, 1e8, signal, 5) ;
%% Define Sensor Array
staringArray = sensor ;
%% Compute Angles of Arrival
arrivalAngles = staringArray.computeAoA(balloon) ;
disp(arrivalAngles)
%% Move the target
for count = 1:15
balloon{3}.move() ;
arrivalAngles = staringArray.computeAoA(balloon) ;
pause(0.5) ;
end
|
|
Contact us at files@mathworks.com