Normalize using first element of vector
Afficher commentaires plus anciens
I want to normalize the elements of the following vector using the first element. I want the first element of my vector 'stock_market' to be 100 and the other elements of the vector to be normalized according to that value. I used the normalize function:
stock_market = readmatrix('^FTSE.csv' , 'Range' , 'F2:F313')
norm_stock_market = normalize(stock_market , 'scale' , 'first' , '100')
but I am getting an error.
Any help would be appreciated. Thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Dynamic System Models dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!