How can I make 3d shaped graphs?

22 views (last 30 days)
adi
adi on 31 Oct 2025 at 12:49
Answered: Star Strider on 31 Oct 2025 at 13:25
a

Answers (2)

dpb
dpb on 31 Oct 2025 at 13:20
Moved: dpb on 31 Oct 2025 at 13:20
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 colormap. colordef - Set color defaults. graymon - Set graphics defaults for gray-scale monitors. cmpermute - Rearrange colors in colormap. cmunique - Eliminate unneeded colors in colormap of indexed image. imapprox - Approximate indexed image by one with fewer colors. Lighting. surfl - 3-D shaded surface with lighting. lighting - Lighting mode. material - Material reflectance mode. specular - Specular reflectance. diffuse - Diffuse reflectance. surfnorm - Surface normals. 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. 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 MATLAB file. printopt - Printer defaults. orient - Set paper orientation. See also GRAPH2D, SPECGRAPH.

Star Strider
Star Strider on 31 Oct 2025 at 13:25
That depends on what you want to do.
See: surf, plot3, mesh, contour3, isosurface, and others, in the Surfaces, Volumes, and Polygons documentation.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!