필터 지우기
필터 지우기

Cut a signal in Time domain

조회 수: 2 (최근 30일)
Hamza Hamza
Hamza Hamza 2022년 6월 15일
댓글: Mathieu NOE 2022년 6월 17일
Hey ,
for a project i have to generate a sinusoidal signal(force signal) and a second signal with a step function(speed signal) , then try to get the amplitude of the force signal and the phase difference to the speed signal. In which i have to cut the force signal in time domain in the same time of the step of the speed signal , and then show the amplitude and phase at that point using FFT. any Ideas ?
  댓글 수: 3
Hamza Hamza
Hamza Hamza 2022년 6월 16일
here is the signal , a normal cosin function which i need just to take the second half of it for example (starting from 1 sec) . I will be very glad for your help.
Mathieu NOE
Mathieu NOE 2022년 6월 17일
see example below
clc
clearvars
t = (0:0.01:2);
y = cos(2*pi*5*t);
% select second hal of signal , t>= 1
ind = (t>=1) ; % logical array
t2 = t(ind);
y2 = y(ind);
plot(t,y,t2,y2,'r')

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by