Clear Filters
Clear Filters

How to get the original matrix from derived matrix?!

2 views (last 30 days)
Hello!!
I am deriving the matrix of original spectra to make some corrections in all spectra. But after these corrections I need the original matrix. So, how do I get the original matrix back from the derived matrix?
Please, i need help!!
Many thanks for your help!
Jussara

Answers (1)

Star Strider
Star Strider on 13 May 2015
I would simply copy the original matrix to a separate variable. Then there is no need to recover it.
  7 Comments
Jussara Roque
Jussara Roque on 14 May 2015
I'm using the savgol for calculate the derived matrix the samples and the spectra the solvent. And to correct the solvent signal, I'm subtracting the spectra of each sample and the spectra the solvent. So, the spectra resulting this operation is obtained derived and I want this new matrix with the original data (without derived but with correction the solvent applied in the derived matrix).
Walter Roberson
Walter Roberson on 14 May 2015
Star Strider: the "baseline" has been subtracted out. Something akin to:
derived_matrix = f(A); %for some formula f
[slope, intercept] = do_fitting(derived_matrix);
corrected_derivation = (derived_matrix - intercept)/slope; %normalize using estimated parameters
corrected_A = f_inverse(corrected_derivation);
That is, representation is extracted from the original matrix, used to calculate a correction factor, the correction is applied to the representation information, and now the corrected representation should be transformed back to the original structure.
At the moment we can't say anything about how to do that back-calculation because we do not know how the representation is calculated.

Sign in to comment.

Categories

Find more on Time Series 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!