x = linspace(0,10);
y1 = x;
y2 = x.^2;
y3 = x.^3;
% Plot first function on first axis
ax1 = gca;
l1 = line(x,y1);
set(ax1,'Color','none'); % Set background transparent
% Plot second function on second axis
ax2 = axes('YAxisLocation','right');
l2 = line(x,y2);
set(ax2,'YColor','b'); % Set axis and line to blue
set(l2,'color','b');
set(ax2,'Color','none'); % Set background transparent
% Plot third function on third axis
ax3 = axes;
l3 = line(x,y3); % Set axis and line to red
set(l3,'color','r');
set(ax3,'YColor','r');
What I can't figure out is how to stack the x axis labels nicely so they don't overlap. Maybe someone else can build on this.