What Does '/ Operator Do in Matlab?

What Does '/ Operator Do in Matlab?

I am working on converting a MATLAB program to C and I don'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?

3 Answers

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.

1

' 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.