Generate signal using rectpulse

조회 수: 11 (최근 30일)
Carlos Pérez
Carlos Pérez 2020년 11월 20일
댓글: Carlos Pérez 2020년 11월 20일
Hello everybody,
I want to generate a pulse signal using a function included in the signal toolbox 'rectpulse'
Ts = 1/20
t = -10:Ts:(20-Ts);
A = 8
sign1 = rectpulse(t,A)
plot(t,sign1)
By doing that, I can not plot it because t and sign1 have different size.
Can someone help me in order that they have the same size?
Thanks

채택된 답변

VBBV
VBBV 2020년 11월 20일
%if true
sign1 = rectpuls(t,A)
plot(t,sign1)
Use the rectpuls function to plot
  댓글 수: 1
Carlos Pérez
Carlos Pérez 2020년 11월 20일
Is there similar function to rectpuls, but in order to obtain Nyquist pulses in function of parameter betha?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by