0001 function B = B_a2w(Vector)
0002
0003
0004
0005
0006 sizeV = size(Vector);
0007 if (sum(sizeV)==4 && ( ( sizeV(1)==1 && sizeV(2)==3 ) || ( sizeV(2)==1 && sizeV(1)==3 ) ) )
0008 theta = Vector(1);
0009 eta = Vector(2);
0010 phi = Vector(3);
0011
0012 B = [ 1 0 -sin(eta) ;...
0013 0 cos(theta) cos(eta)*sin(theta) ;...
0014 0 -sin(theta) cos(eta)*cos(theta) ];
0015 else
0016 str = 'the input vector for convertion is:';
0017 utils.helper.msg(utils.const.msg.MNAME, str);
0018 display(Vector);
0019 error('Vector for convertion is not a 3*1 nor a 1*3 matrix (see line above)!');
0020 end
0021 end