Simple mathematical operations

Hello,

Is it possible to do some basic mathematical operations with Igor? I want to divide one wave to another.

Make/N=10 wave0 // Only numbers
Make/N=10 wave1 // Only numbers

Make Result_wave

Result_wave = wave/wave1 // ??? This won't work!

Is there a way of doing that? I know this is easy with Excel but I need it in Igor. Thanks.

Sincerely,
Emre
Copy this command, paste it into Igor's command line and press Enter:

DisplayHelpTopic "Waveform Arithmetic and Assignment"

That will tell you more than you ever wanted to know about the topic.

Having said that...

Your example has a few problems. First, your Result_wave is made with the wrong number of points. It's easiest to use Duplicate to create a wave with the correct characteristics for receiving the result of arithmetic on waves. And, of course, you misspelled "wave0".
Make/N=10 wave0 // Only numbers
Make/N=10 wave1 // Only numbers
Duplicate/O wave0,Result_wave
Result_wave = wave0/wave1 // ??? This won't work!

Of course, the contents of Result_wave are garbage because wave0 and wave1 were never initialized with anything.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Hello,

Thank you so much for your comments. They were really helpful.

Best,
Emre