Syntax Problem
AndrewWright
According to the Igor reference section, the syntax is:
mean(waveName [, x1, x2])
However, when I attempt to use this term,
mean(wave1[1800,1947])
I get a Syntax Error "expected right parenthesis."
I have tried a number of variations with commas and spaces, and using x data markers with parentheses, but no luck on removing the Syntax Error in this operation. I can also execute mean(wave1) correctly.
How should I go about getting my desired mean?
Just write
mean(wave1,1800,1947)
and be aware that x1 and x2 refers to the x scaling and not to the point index.A.
August 18, 2010 at 07:23 am - Permalink
Okay, thanks. This did it. I also reviewed the Reference Syntax Guide to better understand your point about optional arguments.
August 18, 2010 at 07:39 am - Permalink