You can use the round function in Matlab to round a number to the nearest integer, and then divide it by the largest absolute value in the given vector. Here's how you can do it:
main.m116 chars5 lines
This code will give you the normalized, regularly rounded representation of 0.653 according to the given vector f.
gistlibby LogSnag