comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » 3D matrix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 3D matrix [message #89799 is a reply to message #89798] Thu, 04 December 2014 03:18 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, December 4, 2014 12:09:29 PM UTC+1, g.na...@gmail.com wrote:
> Hi
>
> I have a 3D matrix A = Array[100, 200, 200]
> A = [time, x, y]
>
> I want to create a matrix B which is the average of the first 10 time points (total is 100 time points). I should end up with a 2D matrix B=Array[200,200].
>
> Can anyone help please?

How about
b = mean(a[0:9,*,*],dimension=1)

is this what you mean?

Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filling the frame of a NG plot
Next Topic: Write_png problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:23:15 PDT 2025

Total time taken to generate the page: 0.00454 seconds