johnweeks Coming in Igor 7, which is still a ways off. Until then, use intermediate variables: Variable expression1 = ... Variable expression2 = ... return expression1 + expression2 This, naturally, doesn't cover the entire universe of ways that an expression might broken up into sub-expressions, but it should give you the idea. John Weeks WaveMetrics, Inc. support@wavemetrics.com Log in or register to post comments July 28, 2014 at 01:49 pm - Permalink
ali8 I think I will wait Igor 7, then. Log in or register to post comments July 28, 2014 at 02:32 pm - Permalink
GpeinadoA Checking in on this topic, was this feature incorporated into Igor 7? Would be a great additon. Thanks! Log in or register to post comments March 6, 2020 at 09:59 am - Permalink
johnweeks Well, working in Igor 9 (?): Function test() Wave junk junk = gnoise(1) + \ sin(x/10) end Should work in Igor 8, too. Don't have an Igor 7 handy right now. Log in or register to post comments March 6, 2020 at 11:11 am - Permalink
Variable expression2 = ...
return expression1 + expression2
This, naturally, doesn't cover the entire universe of ways that an expression might broken up into sub-expressions, but it should give you the idea.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 28, 2014 at 01:49 pm - Permalink
July 28, 2014 at 02:32 pm - Permalink
Checking in on this topic, was this feature incorporated into Igor 7? Would be a great additon. Thanks!
March 6, 2020 at 09:59 am - Permalink
Well, working in Igor 9 (?):
Wave junk
junk = gnoise(1) + \
sin(x/10)
end
Should work in Igor 8, too. Don't have an Igor 7 handy right now.
March 6, 2020 at 11:11 am - Permalink