How can I calculate rising time and falling time of a continuous waveform?

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

Answers (1)

you can use "falltime" and "risetime" built-in functions in order to calculate falling time and rising time respectively.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Asked:

Jei
on 4 Feb 2013

Answered:

on 21 Aug 2021

Community Treasure Hunt

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

Start Hunting!