Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Rectangular pulse of a specific amplitude

Subject: Rectangular pulse of a specific amplitude

From: Oommen Mathews

Date: 16 Feb, 2013 01:18:06

Message: 1 of 3

Hi,

I was just trying to plot a rectangular pulse, which looks like a clock signal that has specific magnitude, in such a way that there is nothing below the x axis. I tired to use rectpuls, but that plots for unit amplitude by default. Any suggestions would be appreciated.

Subject: Rectangular pulse of a specific amplitude

From: Nasser M. Abbasi

Date: 16 Feb, 2013 04:34:37

Message: 2 of 3

On 2/15/2013 7:18 PM, Oommen Mathews wrote:
> Hi,
>
> I was just trying to plot a rectangular pulse, which looks like a clock signal that
>has specific magnitude, in such a way that there is nothing below the x axis.
>I tired to use rectpuls, but that plots for unit amplitude by default.
> Any suggestions would be appreciated.
>

some examples here (not sure if they what you want)


  http://12000.org/my_notes/mma_matlab_control/KERNEL/node62.htm

http://12000.org/my_notes/mma_matlab_control/KERNEL/node63.htm

Subject: Rectangular pulse of a specific amplitude

From: anyone

Date: 28 Feb, 2013 01:38:35

Message: 3 of 3

On Sat, 16 Feb 2013 01:18:06 +0000, Oommen Mathews wrote:

> Hi,
>
> I was just trying to plot a rectangular pulse, which looks like a clock
> signal that has specific magnitude, in such a way that there is nothing
> below the x axis. I tired to use rectpuls, but that plots for unit
> amplitude by default. Any suggestions would be appreciated.

hint: Matlab is constructed to plot vectors, one for 'x', another for 'y', in 2-D plots. if there aren't any negative values
in 'y', can there necessarily be anything plotted below 'x'?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us