How to delete some portion of signal?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello Everyone. Need some help on signal Processing. First of all thank you for reading my question. I have constructed Sine wave and its delayed version by code '
clear all
clc
f=input('Frequency of wave: ');
A1= input('Amplitude of sine wave: ');
tdelay= input('Time delay in seconds: ');
duration= input('Total duration of signal: ');
t= 0:0.001:duration;
x= A1*sin(2*pi*f*t);
s = tf('s'); % Define your system space
sys = exp(-tdelay*s); % Model the I/O-delay
sysx = pade(sys,10); % Apply pade approximation of 3rd order
[S,TS] = lsim(sysx,x,t);
plot(t,x)
hold on
plot(TS,S)
Now for input of amplitude 1, frequency 1 and delay of 0.25 seconds i am getting output as

Now as you can see in above figure, Initial signal without any delay is shown by blue color and delayed version of same signal is shown by orange color. Now delayed signal is starting after some time which is after 0.25 seconds but before that i am having some uneven profile in signal which i have marked with red circle.
So can anyone tell mi how i can draw output of delayed signal without having that red marked area. I want my output as it should start from 0.25 seconds and nothing before that.
Thank you in advance. Have a nice day!!
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!