필터 지우기
필터 지우기

spike genartion between time 0 to 1

조회 수: 1 (최근 30일)
abhijit kulkarni
abhijit kulkarni 2014년 5월 17일
댓글: abhijit kulkarni 2014년 5월 19일
I have tried following code:
t=0:100; for t=0:50 d=0; end for t=50:55 d=1; end for t=55:100 d=0; end plot(t(1,:),d(1,:));
Now want to generate a pulse between specific time . This is not achieved thr above. Any help please.

채택된 답변

Mischa Kim
Mischa Kim 2014년 5월 18일
Abhijit, use
t = 0:100;
d = zeros(1,numel(t));
d(t>=50 & t<=55) = 1;
plot(t,d);
  댓글 수: 1
abhijit kulkarni
abhijit kulkarni 2014년 5월 19일
Dear Mischa
thank you very very much.
Abhijit

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Generation and Preprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by