# copygraphics

Copy plot to clipboard.

## Syntax

* copygraphics(fig)

## Input argument

* fig - figure object.

## Description

copygraphics copy figure to clipboard.

## Example

```matlab
x = -2:0.25:2;
y = x;
[X,Y] = meshgrid(x);
F = X.*exp(-X.^2-Y.^2);
surf(X,Y,F);
copygraphics(gcf());
```

## See also

[gcf](../graphics/gcf), [saveas](saveas).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
