Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Solving complex number
Replies: 3   Last Post: Jan 15, 2013 4:34 AM

 Messages: [ Previous | Next ]
 Barry Williams Posts: 312 Registered: 6/14/06
Re: Solving complex number
Posted: Jan 14, 2013 2:27 PM

"Salvinder " <salvinder@gmail.com> wrote in message <kd10cs\$cv6\$1@newscl01ah.mathworks.com>...
> Hie,
>
> I've got a matrix of 2X2 as shown below:
>
> [ 0.6 0.4; 0.7 0.3]^n
>
> when I change the value of n based on integer's I have no problem because I'll get the desired answer, but when n becomes decimal numbers such as 1.2 or 1.25, the solution will have a complex number as a solution. For example the solution would look as shown below:
>
> [ 0.2 + 0.034i 0.6 - 0.2i ; 0.4 - 0.03i 0.7+0.4i]
>
> Is there any possible way of removing the complex numbers?
>
> Thanks,

Are you perhaps trying to do an element by element power:

[ 0.6 0.4; 0.7 0.3].^n

This is different mathematically than taking the power of the matrix. Read the help for Mathematical Operators.

Barry

Date Subject Author
1/14/13 Salvinder
1/14/13 Barry Williams
1/15/13 Torsten
1/15/13 Roger Stafford