Difference between revisions of "Lin2lm.m"
(No difference)
|
Revision as of 15:53, 8 December 2015
Converts linear indexing state specification to L,M indexing. In the linear indexing convention, the states are listed in the order of increasing L rank, and, within ranks, in the order of decreas- ing M projection. Syntax: [L,M]=lin2lm(I)
WARNING - zero base indexing, that is:
I=0 -> (L=0,M=0)
I=1 -> (L=1,M=1)
I=2 -> (L=1,M=0), et cetera...
Arrays of any dimension are accepted as arguments.