Offset wave by first value
Fri, 08/12/2022 - 06:45 pm
I'm trying to zero out a 1D wave by offsetting all of the elements by the first value of the wave. I've tried a bunch of things and they all only change the first value. Below are a few of the commands I've tried. I feel like I'm missing something. Is the problem that after zeroing the first value it's subtracting zero from the rest of the elements? I'm looking for something I can run from the command line, not something I'd put in a macro or function.
test_wave = test_wave - test_wave
test_wave = test_wave[p] - test_wave