开发者

What does '/ operator do in MATLAB?

开发者 https://www.devze.com 2023-01-14 07:58 出处:网络
I am working on converting a MATLAB program to C and I d开发者_运维技巧on\'t know MATLAB at all.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消