Effacer les filtres
Effacer les filtres

spike genartion between time 0 to 1

1 vue (au cours des 30 derniers jours)
abhijit kulkarni
abhijit kulkarni le 17 Mai 2014
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.

Réponse acceptée

Mischa Kim
Mischa Kim le 18 Mai 2014
Abhijit, use
t = 0:100;
d = zeros(1,numel(t));
d(t>=50 & t<=55) = 1;
plot(t,d);
  1 commentaire
abhijit kulkarni
abhijit kulkarni le 19 Mai 2014
Dear Mischa
thank you very very much.
Abhijit

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Signal Generation and Preprocessing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by