how to generate a square wave with a fundamental frequency of 50hz?

3 views (last 30 days)
This is my first time to use MATLAB. how can i generate a square wave with a fundamental frequency of 50hz? Then how to obtain a plot that shows 20 periods of the square wave?

Answers (1)

Rick Rosson
Rick Rosson on 5 Nov 2015
>> doc square

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!