Multiple axes for a single surf plot

Viewed 172

I have a surf plot, in which I would like to have two y-axes. I cannot seem to find any other discussion quite like this.

The closest I got so far is:

surf(peaks);
view(0,0)
ax(1) = gca;
axPos = ax(1).Position;
ax(2) = axes('Position',axPos, 'Color', 'none','XTick',[],'ZTick',[],'YAxisLocation','right');
linkprop(ax, 'CameraPosition');
rotate3d on
1 Answers
Related