How to create half cycle sine pulse train

27 Ansichten (letzte 30 Tage)
Durgaprasad Srinivasa
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

Akzeptierte Antwort

KALYAN ACHARJYA
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);
567.png
  3 Kommentare
Durgaprasad Srinivasa
Durgaprasad Srinivasa am 31 Okt. 2019
i need only half cycle sine and i dont need that line from 50 to 100, how to remove it?
Lisa Justin
Lisa Justin am 4 Dez. 2019
n=1:Ts:95;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by