How to create half cycle sine pulse train
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Durgaprasad Srinivasa
am 22 Okt. 2019
Kommentiert: Lisa Justin
am 4 Dez. 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 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 22 Okt. 2019
Bearbeitet: KALYAN ACHARJYA
am 22 Okt. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!