|
From: | Renato S. Yamane |
Subject: | Re: Multiply some colums, discarding others |
Date: | Tue, 24 Nov 2009 17:52:34 -0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 |
On 24-11-2009 17:40, David Bateman wrote:
The problem is: Matrix "A" have a lot ofA lines and I need avoid type one by one, so I would like to know if is possible multiply *automatically* to get "frequency" and multiplication of impedance and phase, like this: Matrix "B" = 20.66 A(1,2) * cos(A(1,3)) 21.47 A(2,2) * cos(A(2,3)) 22.30 A(3,2) * cos(A(3,3)) 23.17 A(4,2) * cos(A(4,3)) 24.07 A(5,2) * cos(A(5,3))[A(:,1),A(:,2).*cos(A(:,3))]
Thanks so much David and Norm! I really apreciate it! Regards, Renato
[Prev in Thread] | Current Thread | [Next in Thread] |