From the documentation ofMATLAB Operators and Special Charactersyou can see that‘isused for complex conjugate transposewhereas.’is used for transpose of a matrix. Since the first expression which gave zerois always real so bothoperatorswill behave same. In the other two expressionsit may give complex number as output (based on the definition ofnuandH(r ,theta)).So,bothoperatorsare different in that case and thus you are not getting zero. If you replace the bottom two expression with the following it will give0 as answer.
That doesn't solve the problem, in my original code, there are other parts that are still complex in nature. I need to use complex conjugate, but I need those elements I've already assumed real to perform normally under the ' complex conjugate operator.
For the real numbers, complex conjugate will return the same output as simple transpose. Since here you have both real and complex numbers in H(r,theta) the difference between both terms will not be an all zero matrix. For real numbers, matrix entries will be zero and for complex number it will be purely imaginary. Also make sure if diff(H(r,theta)) is a 2-D matrix it is symmetric or conjugate symmetric for the output to be zero.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.