I want to generate a square wave with a frequency of 100MHz for a very short duration. Help me out please.

 採用された回答

Setsuna Yuuki.
Setsuna Yuuki. 2020 年 11 月 30 日
編集済み: Setsuna Yuuki. 2020 年 11 月 30 日

0 投票

You can try with square() --> More Info
For example:
time = linspace(0,1,1000);
frecuency = 5; %or other frecuency
x = square(2*pi*frecuency*time);
plot(time,x)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by