Syntax Problem

I want to do a mean of a subset of a wave I am using, 'wave1.'

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?
The square brackets in the Igor reference mark optional arguments.

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.
awirsing wrote:
The square brackets in the Igor reference mark optional arguments.

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.

Okay, thanks. This did it. I also reviewed the Reference Syntax Guide to better understand your point about optional arguments.