Adding zero values to array
Jim
I have created an array (and associated image plot) which contains a function with a square root anomaly. I need to convolute either slices at fixed x values or (preferable) the whole array with a Gaussian in y. However, there are no values (or Nan values?) in the array outside the square route anomaly.
Obviously if I add zero values manually to the wave(s) I can make the convolution work. Is there a neat way to add these to the whole array? Also what would be the command for convoluting the whole array with a Gaussian in y?
cheers, (hope that makes sense!)
Jim
to fill in zeros.
May 7, 2010 at 04:15 am - Permalink
cheers,
Jim
May 7, 2010 at 06:50 am - Permalink
This is equivalent to:
Without indexing, 'w' on the righthand side means "the value of the point in the destination wave that is currently-being evaluated".
May 7, 2010 at 06:49 pm - Permalink