MATLAB Answers

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

22 ビュー (過去 30 日間)
Kaleesh Bala
Kaleesh Bala 2019 年 10 月 3 日
回答済み: Ajay Kumar 2019 年 10 月 3 日
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

  0 件のコメント

Sign in to comment.

採用された回答

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);

  0 件のコメント

Sign in to comment.

その他の回答 (0 件)

製品


Translated by