I am new to Matlab and trying to save my current figure to file. So, I have followed the official documentation at <http://www.mathworks.co.uk/help/matlab/ref/savefig.html#inputarg_h> and entered the following into Matlab:

```
figure;
surf(peaks);
savefig('PeaksFile.fig');
close(gcf);

```

However, I get the following error:

```
Undefined function 'savefig' for input arguments of type 'char'.

```

If I type in:

```
help savefig

```

I get the following error:

```
savefig not found.

```

Any ideas on what's going on? I would have thought that savefig comes with all releases of Matlab rather than requiring any add-ons. The version of my Matlab is 2013a.