How can I calculate rising time and falling time of a continuous waveform?
5 ビュー (過去 30 日間)
古いコメントを表示
We are trying to analyze the output signal from an oscilloscope. The signal typical contains at least two complete cycles and the slope of rising and falling are different.
Q1. How could I just capture one complete wave?
Q2. How could I determine the window size to smooth the noisy single waveform?
Q3. After I determine the dimension of smooth single waveform, how could I calculate rising time and falling time?
I really appreciate your help.
Here is the code I am working on :
clc;
clear;
Time=xlsread('waveform 20130201.xls',25,'B2:B3041');
Detector=xlsread('waveform 20130201.xls',25,'D2:D3041');
Dmin = min(Detector);
CDet=Detector-Dmin;
sCDet= smoothts(CDet);
R=stepinfo(sCDet,'RiseTimeLimits',[0.1,0.9])
plot(Time, sCDet);
0 件のコメント
回答 (1 件)
Shehzaib Shafique
2021 年 8 月 21 日
you can use "falltime" and "risetime" built-in functions in order to calculate falling time and rising time respectively.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!