How to fit data to another data
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have two 1000000x1 vectors of data (data1 and data2). data1 is normalized. Now I need to scale data2 to data1.
2 Commenti
lazymatlab
il 8 Apr 2020
You need to be more specific. What do you mean by 'scale'? Do you want to multiply a scalar to data2? Or each element of data2 needs to scale individually?
Risposte (1)
Ameer Hamza
il 8 Apr 2020
You can try something like this
x % the normalized array
y % the unnormalized array
y_norm = normalize(y, 'range')*(max(x)-min(x))+min(x)
It will make the min() and max() values of x and y same.
0 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!