>> x=1:3; y=1:3 y = 1 2 3 >> I=eye(3); >> pcolor(x,y,I) >> colorbar >> set(gca,'ydir','reverse ??? set(gca,'ydir','reverse | Error: Expected a variable, function, or constant, found "incomplete string". >> set(gca,'ydir','reverse') >> set(gca,'ydir','normal') >> I I = 1 0 0 0 1 0 0 0 1 >> I(3,3)=10^16; >> pcolor(x,y,I) >> colorbar >> set(gca,'clim',[0 1]) >> x=[1 3 2] x = 1 3 2 >> clf >> I=eye(3); >> pcolor(x,y,I) >> clf >> load NWtopex >> clear >> load NWtopex >> whos Name Size Bytes Class SSH 31x66 16368 double array lat 1x31 248 double array lon 1x66 528 double array rkb 256x3 6144 double array Grand total is 2911 elements using 23288 bytes >> plot(lon) >> plot(lat) >> close >> pcolor(lon,lat,SSH) >> colorbar >> shading(' ??? shading(' | Error: Expected a variable, function, or constant, found "incomplete string". >> shading('interp') >> caxis([-45 45]) >> colormap ans = 0 0 0.5625 0 0 0.6250 0 0 0.6875 0 0 0.7500 0 0 0.8125 0 0 0.8750 0 0 0.9375 0 0 1.0000 0 0.0625 1.0000 0 0.1250 1.0000 0 0.1875 1.0000 0 0.2500 1.0000 0 0.3125 1.0000 0 0.3750 1.0000 0 0.4375 1.0000 0 0.5000 1.0000 0 0.5625 1.0000 0 0.6250 1.0000 0 0.6875 1.0000 0 0.7500 1.0000 0 0.8125 1.0000 0 0.8750 1.0000 0 0.9375 1.0000 0 1.0000 1.0000 0.0625 1.0000 1.0000 0.1250 1.0000 0.9375 0.1875 1.0000 0.8750 0.2500 1.0000 0.8125 0.3125 1.0000 0.7500 0.3750 1.0000 0.6875 0.4375 1.0000 0.6250 0.5000 1.0000 0.5625 0.5625 1.0000 0.5000 0.6250 1.0000 0.4375 0.6875 1.0000 0.3750 0.7500 1.0000 0.3125 0.8125 1.0000 0.2500 0.8750 1.0000 0.1875 0.9375 1.0000 0.1250 1.0000 1.0000 0.0625 1.0000 1.0000 0 1.0000 0.9375 0 1.0000 0.8750 0 1.0000 0.8125 0 1.0000 0.7500 0 1.0000 0.6875 0 1.0000 0.6250 0 1.0000 0.5625 0 1.0000 0.5000 0 1.0000 0.4375 0 1.0000 0.3750 0 1.0000 0.3125 0 1.0000 0.2500 0 1.0000 0.1875 0 1.0000 0.1250 0 1.0000 0.0625 0 1.0000 0 0 0.9375 0 0 0.8750 0 0 0.8125 0 0 0.7500 0 0 0.6875 0 0 0.6250 0 0 0.5625 0 0 >> colorbar >> colormap(rkb) >> colorbar >> help graph3d Three dimensional graphs. Elementary 3-D plots. plot3 - Plot lines and points in 3-D space. mesh - 3-D mesh surface. surf - 3-D colored surface. fill3 - Filled 3-D polygons. Color control. colormap - Color look-up table. caxis - Pseudocolor axis scaling. shading - Color shading mode. hidden - Mesh hidden line removal mode. brighten - Brighten or darken color map. colordef - Set color defaults. graymon - Set graphics defaults for gray-scale monitors. Lighting. surfl - 3-D shaded surface with lighting. lighting - Lighting mode. material - Material reflectance mode. specular - Specular reflectance. diffuse - Diffuse reflectance. surfnorm - Surface normals. Color maps. hsv - Hue-saturation-value color map. hot - Black-red-yellow-white color map. gray - Linear gray-scale color map. bone - Gray-scale with tinge of blue color map. copper - Linear copper-tone color map. pink - Pastel shades of pink color map. white - All white color map. flag - Alternating red, white, blue, and black color map. lines - Color map with the line colors. colorcube - Enhanced color-cube color map. vga - Windows colormap for 16 colors. jet - Variant of HSV. prism - Prism color map. cool - Shades of cyan and magenta color map. autumn - Shades of red and yellow color map. spring - Shades of magenta and yellow color map. winter - Shades of blue and green color map. summer - Shades of green and yellow color map. Transparency. alpha - Transparency (alpha) mode. alphamap - Transparency (alpha) look-up table. alim - Transparency (alpha) scaling Axis control. axis - Control axis scaling and appearance. zoom - Zoom in and out on a 2-D plot. grid - Grid lines. box - Axis box. hold - Hold current graph. axes - Create axes in arbitrary positions. subplot - Create axes in tiled positions. daspect - Data aspect ratio. pbaspect - Plot box aspect ratio. xlim - X limits. ylim - Y limits. zlim - Z limits. Viewpoint control. view - 3-D graph viewpoint specification. viewmtx - View transformation matrix. rotate3d - Interactively rotate view of 3-D plot. Camera control. campos - Camera position. camtarget - Camera target. camva - Camera view angle. camup - Camera up vector. camproj - Camera projection. High level camera control. camorbit - Orbit camera. campan - Pan camera. camdolly - Dolly camera. camzoom - Zoom camera. camroll - Roll camera. camlookat - Move camera and target to view specified objects. cameratoolbar - Interactively manipulate camera. High level light control. camlight - Creates or sets position of a light. lightangle - Spherical position of a light. Graph annotation. title - Graph title. xlabel - X-axis label. ylabel - Y-axis label. zlabel - Z-axis label. colorbar - Display color bar (color scale). text - Text annotation. gtext - Mouse placement of text. plotedit - Experimental graph editing and annotation tools. Hardcopy and printing. print - Print graph or SIMULINK system; or save graph to M-file. printopt - Printer defaults. orient - Set paper orientation. vrml - Save graphics to VRML 2.0 file. See also GRAPH2D, SPECGRAPH. graph3d is both a directory and a function. GRAPH3D creates the GRAPH3D user object package >> colormap(gray) >> colormap(bone) >> colormap(flag)