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.
|
| movingTarget |
classdef movingTarget < target
%MOVINGTarget Summary of this class goes here
% Detailed explanation goes here
% Copyright 2008 The MathWorks, Inc.
properties
deltaAoA
end
methods
function newMovingTarget = movingTarget(AoA, range, signal, deltaAoA)
% assign the superclass portion
newMovingTarget = newMovingTarget@target(AoA, range, signal) ;
if nargin == 4
% assign the movingTarget's unique property
newMovingTarget.deltaAoA = deltaAoA ;
end
end
function move(amovingTarget)
% add change in AoA
amovingTarget.AoA = amovingTarget.AoA ...
+ amovingTarget.deltaAoA ;
% Keep target in in bounds by flipping direction after having
% moved too far
if abs(amovingTarget.AoA) > 65
amovingTarget.deltaAoA = -amovingTarget.deltaAoA ;
end
end
end
end
|
|
Contact us at files@mathworks.com