How to integrate a vector after derivating it to interpretate original values?
Show older comments
Dear colleagues,
I work with spectral signals, which are vectors composed by numeric values. These signals are better interpreted when derivated, and I do it using savgol from PLS toolbox or sgolayfilt, normally using first derivative and 2nd order polynomial. Nonetheless, after performing the data treatments, I would like to return to the original values, but I am failing when trying it. My vectors are composed of 110 variables (columns), and all the examples I can find suggests the use of integral to solve functions problems... As an answer, I need the vector (with my 110 variables) back so I can better interpret what is going on with the signal.
I have already tryed:
x = int (vector); --> fail
x = int (vector,1,110); --> fail
x = trapz (vector); --> fail
x = trapz (vector,1,110); --> fail
x = cumtrapz (vector); --> fail
x = cumtrapz (vector,1,110); --> fail
So, please, I would like to kindly ask you guys if someone here can help me, please.
My sincere thanks in advance!
Best regards,
2 Comments
Torsten
on 30 Apr 2022
As an answer, I need the vector (with my 110 variables) back so I can better interpret what is going on with the signal.
The question is: Why is the original vector gone ? Did you forget to save it ?
Paulo Henrique Março
on 1 May 2022
Accepted Answer
More Answers (0)
Categories
Find more on Signal Generation, Analysis, and Preprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!