how to multiply mutiple matrices sequentially

Discussion in 'Programmer's Corner' started by shegmite, Apr 5, 2013.

  1. shegmite

    Thread Starter New Member

    Apr 5, 2013
    4
    0
    Hi All,
    Please can anyone help with matlab codes that i can use to multiply sequentially multiple complex 2 by2 matrices e.g A1*A2*A3*....*AN = [0.9987+0.6544i 0.0877+0.0766i;0.0987+0.0977i 0.0087+0.0987i]
    where N can be upto 1000.
    All the matrices have the same values but i want to multiply them sequentially as shown above for upto 1000 matrices.
    Thanks
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,142
    1,790
    Can you use the exponential notation? That is, if A is a complex 2x2 matrix and you want to know the 127th power of that matrix you write:

    Code ( (Unknown Language)):
    1.  
    2. A^127
    3.  
     
Loading...