[Top][All Lists]

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

how synchronize array elements?

From: DushanM
Subject: how synchronize array elements?
Date: Thu, 22 Nov 2007 12:32:58 -0700
User-agent: MacSOUP/2.8.1 (Mac OS X version 10.4.11 (x86))

I have two differently-dimensioned arrays, A and B, whose sizes are
M x N and 3 x M x N respectively (the first index of B refers to
the components of a 3-vector).  Now I want to do some operations
such as multiply the vectors in B by the corresponding scalar in A:

    A(k,l) * B(:,k,l)  ,       k = 1:M,   l = 1:N

where the 'k' values are identical in A and B and likewise for 'l'.
In other words, how do I make sure the indices are individually
synchronized between the terms?  In one experiment I tried, they
didn't seem to be.

- Dushan

reply via email to

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