Multiply array by X

Hi,

I'm not too familiar with IGOR syntax, how would I take a given array and multiply the whole thing by some constant?

Is this close?:
Duplicate wave1, wave2
wave2 = wave1 * 10
Display wave2

Thanks
Skargaemer wrote:
Hi,

I'm not too familiar with IGOR syntax, how would I take a given array and multiply the whole thing by some constant?

Is this close?:
Duplicate wave1, wave2
wave2 = wave1 * 10
Display wave2

Thanks


Close, and it's the right way if you want a copy of the wave instead of just modifying the original. Here's a command that simply does it to the original:

wave1 *= 10

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com