help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assigning indices to matrices


From: Alain Baeckeroot
Subject: Re: assigning indices to matrices
Date: Mon, 20 Jul 2009 17:56:58 +0200
User-agent: KMail/1.9.9

Le 19/07/2009 à 19:08, shruti sharma a écrit :
> 
> Dear all,
>       I want to assign an index (say n) to the matrix carrying
> the same "n" as variable. For this I have written program as a
> seperate function file, which I call as "U(n)".
>        My problem is that I want to run a loop over "n" say from 
>1 to 10 and multiply the matrices U(1) * U(2)......* U(n). But not
> able to run the loop. Please suggest me the wayout.
>       Thanks in advance
> 

you can add one dimension to you matrice, corresponding to your indice
U1(k,l) -> V(1,k,l)
U2(k,l) -> V(2,k,l) 
....

i m not sure if the additional dimension should be put before or after
the other indices, for efficiency. V(1,k,l) or V(k,l,1) ?

my 2 cents
Alain





reply via email to

[Prev in Thread] Current Thread [Next in Thread]