Hello, I would like to change the principal frame for some higher order crystal field terms, and found this example for how to do so in the documentation:
angles = rand(1,3)*pi; % Euler tilt angles, in radians
B2 = [3 4 5 0 2]; % B(2,q) tensor components
R = wignerd(2,angles); % rotation matrix for rank-2 tensor
B2 = R * B2; % rotated tensor
Sys.B2 = B2.';
However in this example R has 2k+1 columns and B2 has only one row, is this a typo?