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개)

질문:

2020년 11월 30일

편집:

2020년 11월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by