How to align the center of mass of two density functions?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dear all,
I have two density functions which I would like to align their x-axis.
I was thinking to align then using the barycenters but I don't know how to do it in matlab.
I would like to do this to multiply later these two density functions.
Can anyone give me a clue on this?
Thank you in advance
3 Kommentare
Antworten (1)
Catalytic
am 12 Feb. 2022
xa=1:length(Na);
xb=1:length(Nb);
Nb=Nb + trapz(xa,Na.*xa) - trapz(xa,Na.*xa);
Siehe auch
Kategorien
Mehr zu Parallel Computing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!