MATLAB: Error for subplot command

plotsubplot

The following command only plots the first subplot and gives the ERROR message:
Undefined function 'suplot' for input arguments of type 'double'.
Error in subplots (line 10) suplot(3,1,2);
I can substitute any of the y data sets for the first subplot command and they plot fine. Any ideas?
Thanks!
CODE:
x=mdio08_pos;
y1=mdio08_depth;
y2=mdio06_depth;
y3=mdio05_depth;
figure
subplot(3,1,1);
plot(x,y1)
suplot(3,1,2);
plot(x,y2)
suplot(3,1,3);
plot(x,y3)

Best Answer

Typo!
See if this improves things:
x=mdio08_pos;
y1=mdio08_depth;
y2=mdio06_depth;
y3=mdio05_depth;
figure
subplot(3,1,1);
plot(x,y1)
subplot(3,1,2);
plot(x,y2)
subplot(3,1,3);
plot(x,y3)
Related Question