How to create half cycle sine pulse train

25 vues (au cours des 30 derniers jours)
Durgaprasad Srinivasa
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

Réponse acceptée

KALYAN ACHARJYA
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);
567.png
  3 commentaires
Durgaprasad Srinivasa
Durgaprasad Srinivasa le 31 Oct 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 le 4 Déc 2019
n=1:Ts:95;

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by