value
Description
returns the value, tsval
= value(tssig
,az
,el
,freq
)tsval
, of the target strength specified by the
target strength signature object, tssig
, computed at azimuth
az
, elevation el
, and frequency
freq
. If the specified azimuth and elevation is outside of the region
in which the target strength signature is defined, the target strength value,
tsval
, is returned as -Inf
in dBsm.
Input Arguments
tssig
— Target strength signature
tsSignature
object
Target strength signature, specified as a tsSignature
object.
az
— Azimuth angle
scalar | length-M real-valued vector
el
— Elevation angle
scalar | length-M real-valued vector
freq
— TS frequency
positive scalar | length-M vector with positive, real elements
TS frequency, specified as a positive scalar or length-M vector
with positive, real elements. The az
, el
, and
freq
arguments must have the same size. You can, however, specify
one or two arguments as scalars, in which case the arguments are expanded to
length-M. Units are in Hertz.
Example: 20e3
Data Types: double
Output Arguments
tssval
— Target strength
scalar | real-valued length-M vector
Target strength, returned as a scalar or real-valued length-M vector. Units are in dBsm.
Object Functions
perturbations | Perturbation defined on object |
perturb | Apply perturbations to object |
Examples
Target Strength of Rigid Cylinder
Specify the target strength (TS) of a 5m long rigid cylinder immersed in water and plot TS values along an azimuth cut. Assume the short-wavelength approximation. The cylinder radius is 2m. The speed of sound is 1520 m/s.
L = 5; a = 2;
Create an array of target strengths at two wavelengths. First, specify the range of azimuth and elevation angles over which TS is defined. Then, use an analytical model to compute the target strength. Create an image of the TS.
lambda = [0.12, .1]; c = 1520.0; az = [-20:0.1:20]; el = [-10:0.1:10]; ts1 = ts_cylinder(L,a,az,el,lambda(1)); ts2 = ts_cylinder(L,a,az,el,lambda(2)); tsdb1 = 10*log10(ts1); tsdb2 = 10*log10(ts2); imagesc(az,el,tsdb1) title('Target Strength') xlabel('Azimuth (deg)') ylabel('Elevation (deg)') colorbar
Create a tsSignature
object and plot an elevation cut at azimuth.
tsdb(:,:,1) = tsdb1; tsdb(:,:,2) = tsdb2; freq = c./lambda; tssig = tsSignature('Pattern',tsdb,'Azimuth',az,'Elevation',el,'Frequency',freq); ts = value(tssig,30,el,freq(1)); plot(el,tsdb1) grid title('Elevation Profile of Target Strength') xlabel('Elevation (deg)') ylabel('TS (dBsm)')
function ts = ts_cylinder(L,a,az,el,lambda) k = 2*pi/lambda; beta = k*L*sind(el')*ones(size(az)); gamma = cosd(el')*ones(size(az)); ts = a*L^2*(sinc(beta).^2).*gamma.^2/2/lambda; ts = max(ts,10^(-5)); end function s = sinc(theta) s = ones(size(theta)); idx = (abs(theta) <= 1e-2); s(idx) = 1 - 1/6*(theta(idx)).^2; s(~idx) = sin(theta(~idx))./theta(~idx); end
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2018b
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)