How to re-map a number from one range to another in MATLAB. I've a random number in the range 0 to 5. Now I want to convert it into range of 12.5 to 37.5 . Please help me out for this problem.
MATLAB: Mapping of a random number in one range to another range
MATLAB
Related Question
- I want to generate ones in consecutive random positions in a vector of zeros for example i want to generate 5 ones in consecutive positions in a specific range lets say from position 5 to position 15 assuming that the vector has 48 positions
- How to generate random numbers in a range with decimal steps
- Mapping, colormap, eigenvector
Best Answer