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

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?

Categories

Asked:

on 5 Nov 2015

Answered:

on 5 Nov 2015

Community Treasure Hunt

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

Start Hunting!