Effacer les filtres
Effacer les filtres

rescale spectra vertically.

1 vue (au cours des 30 derniers jours)
majid husseini
majid husseini le 10 Mar 2021
i want to show both spectra on the same plot. This will make it easy to see variability if it is present and make plots more compact. to show two or more spectra together i have to rescale spectra vertically. In the case i am showing, the second spectrum needs to be multiplied by a number around 3.7 to match the first one.
Here is how i can determine this scaling factor:
1) find indices (with Matlab's "find" function?) of points in the spectrum #1 falling between xmin and xmax in your plot.
2) calculate median value (m1) of spectrum1 in this index range
3) find indices of points in the spectrum #2 falling between xmin and xmax in your plot.
4) calculate median value (m2) of spectrum2 in this index range
5) correct spectrum2 by multiplying with m1 and dividing by m2
how can i do it in matlab?

Réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by