How to create half cycle sine pulse train
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Durgaprasad Srinivasa
le 22 Oct 2019
Commenté : Lisa Justin
le 4 Déc 2019
clc;
clear all ;
close all;
%wt = 0:0.2:pi;
tp=2.2676*10^-3;
Ts=22.67*10^-6;
n=1:Ts:101;
fp=(1/tp);
w=2*pi*fp;
%p=sin(wt);
p=sin(w*n*Ts);
plot(n,p);
i tried this
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 22 Oct 2019
Modifié(e) : KALYAN ACHARJYA
le 22 Oct 2019
How to create half cycle sine pulse train
Is this?
clc;
clear all;
close all;
%wt = 0:0.2:pi;
tp=2.2676*10^-3;
Ts=22.67*10^-6;
n=1:Ts:101;
fp=(1/tp);
w=2*pi*fp;
%p=sin(wt);
p=sin(w*n*Ts);
p(find(p<0))=0;
plot(n,p);
3 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!