Code covered by the BSD License
-
Events and listeners
-
Test Handle class
-
Test Inherited Class
-
Test Simple Object
-
Test for Sensor Array Data Se...
-
Test for Sensor Array Data Se...
-
Data=gendata(Targets,NumSenso...
Generates the sensor sample data
-
[mags, fflip]=magfft(obj,zero...
MAGFFT Calculate the magnitude square of the FFT of the
-
angles=doa(obj)
DOA Estimate the direction of arrival of the sources in the
-
evCallback(src,evnt)
-
evDataCallback(src,evnt)
-
magfftplot(obj, zeroPadTo)
MAGFFTPLOT Plot the magnitude square of the FFT of the sensor array data
-
obj=steer(obj,theta)
Steer array electronically by angle theta, returning a new
-
plot(obj)
PLOT Plot the sensor array sample data set
-
showarray(Targets,NumSensors,...
SHOWARRAY Illustrate a sensor array with ideal sources
-
ev
-
handleImp.sads
Sensor Array Data Set Handle Class
-
inheritedImp.sadsT
-
sads
-
sads_simple
SADS_SIMPLE Sensor Data Set Class
-
valueImp.sads
Sensor Array Data Set Class
-
loadparameters.m
-
Test Handle class
-
View all files
from
What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples
by Stuart McGarrity
Code examples used in "What's New for Object-Oriented Programming in MATLABĀ®" Webinar
|
| loadparameters.m |
%% Load Parameters
% Loads and initializes a number of data items and parameters
%% Define far-field targets/sources
DirectionsOfArrival=[-10; 20]; % Orginal directions (degrees)
SourceFreq=12e7; % Source frequency
Range=1e8; % Distance of all sources (m)
c=3e8; % Speed of light (m/s)
Wavelength=c/SourceFreq; % Wavelength of sources (m)
Amplitude=1; % Amplitude of sources at sensor array
%% Information About Targets
numSources=length(DirectionsOfArrival);
Targets=[DirectionsOfArrival*pi/180 repmat([Range Amplitude SourceFreq],numSources,1)];
%% Define Sensor Array
NumSensors=16; % Number of sensors
NumSamples=64; % Number of snapshots
SampleRate=1/.3e-7; % Sampling period
SNR=50; % SNR
Spacing=Wavelength/2; % Set Sensor spacing in meters to wavelength/2
Name='Sensor Array Amplitudes';
Data=gendata(Targets,NumSensors,NumSamples,SampleRate,Spacing,SNR,c);
factor=0.9;
%% Clean up
clear Amplitude Range SourceFreq numSources
|
|
Contact us at files@mathworks.com