How to cut the signal at particular time or tol value ??

5 ビュー (過去 30 日間)
Ramesh Bala
Ramesh Bala 2019 年 10 月 3 日
コメント済み: Hamza Hamza 2022 年 6 月 15 日
I have a signal and respective time ,how shall I cut it at a certain more or less close to tol value/time vector value.
How to set the tol and plot the cut signals ?
close all
clear all
load signal
load t
S = signal(1,:);
tol = 0.5/2310;
plot(t,S);
T = (1:tol); %??
%then plot limited signal with limited time

採用された回答

Ajay Kumar
Ajay Kumar 2019 年 10 月 3 日
load signal
load t
S = signal(1,:);
tol = 0.5/2310;
plot(t,S);
[minDistance, indexOfMin] = min(abs(tol-t));
newt = t(1:indexOfMin);
newS = S(1:indexOfMin);
plot(newt,newS);
  1 件のコメント
Hamza Hamza
Hamza Hamza 2022 年 6 月 15 日
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 ?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatched Filter and Ambiguity Function についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by