how can i generate a single period rectangular pulse in both negative and positive y axis together and seperate negative y axis rectangular wave

조회 수: 5 (최근 30일)
fs=50; t=-1.5:1/fs:1.5; y=2*(rectpuls(t)); subplot(3,1,2) plot(t,y); axis([-1.7 1.7 -2 2]) title('rectangular waveform'); xlabel('time(ms)'); ylabel('amplitude'); grid on;
this is giving me only positive rectangular pulse. i want to generate it in both positive and negative y axis

답변 (0개)

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by