Subtract two waves

Hi All,

I need to know how to subtract two waves?

Thanks,

Sama
I'd like to add some comments which may be of some help for you. The expression andyfaff posted can be used in functions like:

Function Substact(a,b)
    Wave a,b
    a = a - b
End


You can do a simple assignment in the command window to achieve the same by typing this:
a = a - b
or shorter
a -= b
Note that this subtraction method doesn't make use of you eventual wave scaling.

I recommend that you read more about this in the 'Waveform Arithmetic and Assignments' chapter in the manual.