No BSD License  

Highlights from
Clebsch Gordan Coefficient Solver GUI

image thumbnail
from Clebsch Gordan Coefficient Solver GUI by james jun
Easy to use Clebsch-Gordan coefficient solver for adding two angular momentums.

findrecord( M, r )
function iIndex = findrecord( M, r )
%FINDINDEX: find indices which matches the row
%input
%   M: matrix, two dimensional
%   r: record to find
%output
%   iIndex

numRecords = size(M);
numRecords = numRecords(1);
iIndex = [];
for i=1:numRecords
    if (all(M(i,:) == r))
        iIndex = [iIndex; i];
    end
end
    

Contact us at files@mathworks.com