Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Solving complex number

Subject: Solving complex number

From: Salvinder

Date: 14 Jan, 2013 13:17:08

Message: 1 of 2

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,

Subject: Solving complex number

From: someone

Date: 14 Jan, 2013 15:13:14

Message: 2 of 2

"Salvinder " <salvinder@gmail.com> wrote in message <kd10gk$dcr$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,

doc real

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us