<p>I'm trying to change the background color of a single subplot in a MATLAB figure.</p>

<p>It's clearly feasible since the UI allows it, but I cannot find the function to automate it.</p>

<p>I've looked into <code>whitebg</code>, but it changes the color scheme of the whole figure, not just the current subplot. </p>

<p>(I'm using MATLAB Version 6.1 by the way)</p>

I've not used Matlab in several years, but I think it might well be the whitebg method called after the subplot declaration, similar to the way in which you would set a title.
```
```
subplot(3, 2, 4), hist(rand(50)), whitebg('y');
```
```