How to Normalize 3D array with negative and positive values to values between -1 and 1?
Show older comments
Hi all
In order to be able to do some upcoming calculations, I need to normalize a 3D array to values between -1 and 1. The array (i.e.: 61 x 61 x 6) has values that can be negative and/or positive. Is there a fast way to normalize this complete array to values between -1 and 1, where -1 is the most negative value and +1 the largest positive value?
Actually I want to map the most negative number to -1 and the largest positive number to 1, and have all the numbers in between scale between them so the relations keep the same...
Greetings
Daan
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time 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!