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

Home » Public Forums » archive » array problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
array problems [message #61298] Fri, 11 July 2008 11:36
David Sheerin is currently offline  David Sheerin
Messages: 4
Registered: April 1999
Junior Member
Hi All
I have a palindromic vector of floats, e.g. [a,b,c,b,a] , and I would like
to expand it to include the mean between each value like [(0+a)/2, a,
(a+b)/2, b, (b+c)/2, c, (c+b)/2, b, (b+a)/2, a, (a+0)/2]. Is there any
elegant way of doing this without having to resort to clunky for loops?

I also would like to repeat this action on the resulting vector.

Thanks for any tips

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: In need of array help!
Next Topic: IDL_AviGenerator

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

Current Time: Wed Oct 08 11:50:57 PDT 2025

Total time taken to generate the page: 0.01200 seconds