What is the difference between the two input methods Matlab Complex Matrices

Here are two ways to enter a command in Matlab. I do not think that there is a difference between them. However, the result is really different. Therefore, I wonder what I missed in this situation.

Here is the first entry:

>> A = [(-0.025+0.01i) -0.025; 3 (1-2i)]; >> B = [(5.7955+1.5529i) 0]'; >> I=inv(A)*B 

The output is as follows:

 I = 1.0e+02 * -0.7063 - 1.2723i -1.1030 + 1.6109i 

Here is the second input:

 >> A = [(-0.025+0.01i) -0.025;3 (1-2i)]; >> B = [(5.7955+1.5529i);0]; >> I=inv(A)*B 

And Matlab will give me the result below:

 I = 2.44764705882354 - 145.499411764706i -176.067882352941 + 84.3624705882353i 

I am really confused by this situation. If you know anything, let me know. Thank.

+2
matlab transpose complex-numbers
May 7 '14 at 5:14
source share
1 answer

Use B = [(5.7955+1.5529i) 0].' , which is actually transposed essentially, and not B = [(5.7955+1.5529i) 0]' , which is a conjugate transposis.

You can also use the explicit invocation of the transpose command - B = transpose([(5.7955+1.5529i) 0])

+4
May 7 '14 at 6:48
source share



All Articles