Documentation

This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

step

System object: phased.RectangularWaveform
Package: phased

Samples of rectangular pulse waveform

Syntax

Y = step(sRFM)Y = step(sRFM,prfidx)

Description

 Note:   Starting in R2016b, instead of using the step method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example, y = step(obj,x) and y = obj(x) perform equivalent operations. When the only argument to the step method is the System object itself, replace y = step(obj) by y = obj().

Y = step(sRFM) returns samples of a rectangular pulse in the column vector Y.

Y = step(sRFM,prfidx), uses the prfidx index to select the PRF from the predefined vector of values specified by in the PRF property. This syntax applies when you set the PRFSelectionInputPort property to true.

 Note:   The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.

Examples

expand all

Construct a 10 microseconds rectangular pulse with a pulse repetition interval of 100 microseconds.

Pulsewidth = 10e-6; PRI = 100e-6; sRFM = phased.RectangularWaveform('PulseWidth',Pulsewidth,... 'OutputFormat','Pulses','NumPulses',1,... 'SampleRate',1e6,'PRF',1/PRI); wav = step(sRFM); plot(wav) xlabel('Time (\mu sec)') ylabel('Amplitude') grid 

Construct rectangular waveforms with two pulses each. Set the sample rate to 1 MHz, a pulse width of 50 microseconds, and a duty cycle of 20%. Vary the pulse repetition frequency.

Set the sample rate and PRF. The ratio of sample rate to PRF must be an integer.

fs = 1e6; PRF = [10000,25000]; sRFM = phased.RectangularWaveform('OutputFormat','Pulses','SampleRate',fs,... 'DurationSpecification','Duty Cycle','DutyCycle',.2,... 'PRF',PRF,'NumPulses',2,'PRFSelectionInputPort',true); 

Obtain and plot the rectangular waveforms. For the first call to the step method, set the PRF to 10kHz using the PRF index. For the next call, set the PRF to 25 kHz. For the final call, set the PRF to 10kHz.

wav = []; wav1 = step(sRFM,1); wav = [wav; wav1]; wav1 = step(sRFM,2); wav = [wav; wav1]; wav1 = step(sRFM,1); wav = [wav; wav1]; nsamps = size(wav,1); t = [0:(nsamps-1)]/sRFM.SampleRate; plot(t*1e6,real(wav)) xlabel('Time (\mu sec)') ylabel('Amplitude') grid
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.31665322184562683, "perplexity": 6495.694967849471}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-09/segments/1487501171043.28/warc/CC-MAIN-20170219104611-00275-ip-10-171-10-108.ec2.internal.warc.gz"}