How can I calculate rising time and falling time of a continuous waveform?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Shehzaib Shafique
il 21 Ago 2021
you can use "falltime" and "risetime" built-in functions in order to calculate falling time and rising time respectively.
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!