Got Questions? Get Answers.
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:
How to convert sine wave signal to square wave in Simulink?

Subject: How to convert sine wave signal to square wave in Simulink?

From: stime ss

Date: 27 Sep, 2009 12:37:01

Message: 1 of 5


How to convert sine wave signal to square wave in Simulink?

Subject: How to convert sine wave signal to square wave in Simulink?

From: stime ss

Date: 27 Sep, 2009 21:51:01

Message: 2 of 5

I want to convert a sine wave into square wave in Simulink so that i could use counter and measure the frequency.
How to convert a sine wave signal to square wave in Simulink?
thanks in advance

Subject: How to convert sine wave signal to square wave in Simulink?

From: Shaun Gomez

Date: 24 Jan, 2012 14:09:10

Message: 3 of 5

"stime ss" wrote in message <h9nm9d$b1q$1@fred.mathworks.com>...
>
> How to convert sine wave signal to square wave in Simulink?

Check this

http://www.mathworks.in/products/matlab/demos.html?file=/products/demos/shipping/matlab/xfourier.html

Subject: How to convert sine wave signal to square wave in Simulink?

From: fabian.uriarte@gmail.com

Date: 13 Feb, 2013 22:43:01

Message: 4 of 5

Use sign(sine(wt))

Subject: How to convert sine wave signal to square wave in Simulink?

From: anyone

Date: 14 Feb, 2013 01:40:11

Message: 5 of 5

On Wed, 13 Feb 2013 14:43:01 -0800, fabian.uriarte wrote:

> Use sign(sine(wt))

Well, yeah... but the OP may want to increase the sample rate a bit.

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