tags:

views:

35

answers:

3

I am working on converting a MATLAB program to C and I don't know MATLAB at all. Can anyone tell me what the '/ does in MATLAB?

var1=acos(v1true*varW1'/(norm(v1true)));

I know what ./ does, it causes MATLAB to divide term by term. But I don't know about '/

Thanks, DemiSheep

A: 

' is the conjugate or Hermitian transpose. If you wish to do a normal transpose, use .'

Brandon Carter
A: 

Yes, in your case you are taking transpose of varW1 dividing it with the norm(v1true) then multiplying it with v1true.

cooltechnomax
+3  A: 

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.

bnery
Great thanks for the link. You'd have thought I could have found that with my googling... :)
DemiSheep

related questions