I am working on converting a MATLAB program to C and I d开发者_运维技巧on't know MATLAB at all.
I am trying to figure out this line of code:
var1=acos(v1true*varW1'/(norm(v1true)));
I know what ./ does, it causes MATLAB to divide term by term. But I don't know about '/. Can anyone tell me what '/ does in MATLAB?
As Brandon said, ' is the conjugate or Hermitian transpose (also known as linear algebraic transpose), and .' is the array transpose. For more information see MATLAB's Arithmetic Operators page.
' is the conjugate or Hermitian transpose. If you wish to do a normal transpose, use .'
Yes, in your case you are taking transpose of varW1 dividing it with the norm(v1true) then multiplying it with v1true.
精彩评论