Normalize the gram matrices so the features lie on the surface of a unit hypersphere, . When the Gram matrices are not full, i.e., the diagonals do not contain all or entries, the diagonals must be provided in optList.
gram = normalize(gramObj, optList)
|optList||-||list of NAME,VALUE option pairs|
|'Diag1'||-||Diagonal entries associated with first dimension for Gram matrices in a matrix.|
|'Diag2'||-||Diagonal entries associated with second dimension for Gram matrices in a matrix.|