System object: phased.IntensityScope
Package: phased
Hide intensity scope window
hide(sIS)
hide(
hides the
display window of the sIS
)phased.IntensityScope
object, sIS
.
sIS
— Intensity scopephased.IntensityScope
System object™Intensity scope, specified as a phased.IntensityScope
System object.
Example: phased.IntensityScope
Create an angle-time-intensity scope. Use the phased.IntensityScope
System object? to display simulated intensity as a function of the angular motion of a moving target. After five steps in the processing loop, use the hide
method to hide the scope. At completion of the loop, use the show
method to show the scope.
Note: This example runs only in R2016b or later. If you are using an earlier release, replace each call to the function with the equivalent step
syntax. For example, replace myObject(x)
with step(myObject,x)
.%% Simulate data for 5 seconds with a time interval of 0.5 seconds between scan lines.
nsteps = 10; dt = 0.5; timespan = nsteps*dt;
Set Up IntensityScope System Object
Create an angle-time-intensity scope having azimuth angle bins spanning ?180° to 180° with 1° resolution.
scanline = zeros(361,1); angres = 1.0; angmin = -180.0; angmax = 180.0; rtidisplay = phased.IntensityScope( ... 'Name','IntensityScope Display',... 'Title','Azimuth vs. Time',... 'XLabel','Azimuth (deg)', ... 'XResolution',angres,'XOffset',angmin,... 'TimeResolution',dt,'TimeSpan',timespan, ... 'IntensityUnits','Watts',... 'Position',[100,100,800,450]);
Loop Over Scan Updates
Simulate angular motion and fill the bin containing the current angular position of the signal. Hide the scope after the 5th step and show the scope at the end of the simulation.
for k = 1:nsteps ang = -130.0 + k; binindexdx = floor((ang - angmin)/angres) + 1; scanline(binindexdx) = 1; rtidisplay(scanline); scanline(binindexdx) = 0; if k == 5 hide(rtidisplay) end pause(.1); end show(rtidisplay)
You have a modified version of this example. Do you want to open this example with your edits?