Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Matlab DSP | How to plot a rectangular pulse waveform ?

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

How to plot a rectangular pulse waveform ? - math...@hotmail.com - Nov 1 9:08:04 2006

Hi all out there!
I'm a newbie in this Discussion Group and beggining in matlab signal plotting
and processing.
So, i need some help: 

I want to plot a rectangular pulse with amplitude=1 in odd ranges (integer part)
and amplitude=0 in even ranges.

Anyone can help me?

Thanks in advance. 
Best Regards

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: How to plot a rectangular pulse waveform ? - Jeff Brower - Nov 1 16:08:02 2006

Mathlop-

> I'm a newbie in this Discussion Group and beggining in matlab signal
plotting and processing.
> 
> So, i need some help:
> 
> I want to plot a rectangular pulse with amplitude=1 in odd ranges (integer
part) and amplitude=0 in even ranges.
> 
> Anyone can help me?

I don't know MATLAB well enough to tap out code from my head, but I know if you
code
this difference equation:

  y[n] = d[n mod 2]

where d is delta step function, you will get 1 pulses whenever n is odd.

-Jeff

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )