MATLAB Function Reference (Volume 2: Graphics)
MATLAB Function Reference (Volume 2: Graphics) MATLAB Function Reference (Volume 2: Graphics)
trisurfPurpose2trisurfTriangular surface plotSyntaxDescriptiontrisurf(Tri,X,Y,Z)trisurf(Tri,X,Y,Z,C)trisurf(...'PropertyName',PropertyValue...)h = trisurf(...)trisurf(Tri,X,Y,Z) displays triangles defined in the m-by-3 face matrix Trias a surface. Each row of Tri defines a single triangular face by indexing intothe vectors or matrices that contain the X, Y, and Z vertices.trisurf(Tri,X,Y,Z,C) specifies color defined by C in the same manner as thesurf function. MATLAB performs a linear transformation on this data toobtain colors from the current colormap.trisurf(...'PropertyName',PropertyValue...) specifies additional patchproperty names and values for the patch graphics object created by thefunction.h = trisurf(...) returns a patch handle.ExampleCreate vertex vectors and a face matrix, then create a triangular surface plot.x = rand(1,50);y = rand(1,50);z = peaks(6*x–3,6*x–3);tri = delaunay(x,y);trisurf(tri,x,y,z)See Alsopatch, surf, trimesh, delaunay2-526
uicontextmenuPurpose2uicontextmenuCreate a context menuSyntaxDescriptionPropertieshandle = uicontextmenu('PropertyName',PropertyValue,...);uicontextmenu creates a context menu, which is a menu that appears when theuser right-clicks on a graphics object.You create context menu items using the uimenu function. Menu items appearin the order the uimenu statements appear. You associate a context menu withan object using the UIContextMenu property for the object and specifying thecontext menu’s handle as the property value.More information about context menus.This table lists the properties that are useful to uicontextmenu objects,grouping them by function. Each property name acts as a link to a descriptionof the property.Property Name Property Description Property ValueControlling Style and AppearanceVisible Uicontextmenu visibility Value: on, offDefault: offPositionLocation of uicontextmenu whenVisible is set to onValue: two-element vectorDefault: [0 0]General Information About the ObjectChildrenThe uimenus defined for theuicontextmenuValue: matrixParent Uicontextmenu object’s parent Value: scalar figure handleTag User-specified object identifier Value: stringType Class of graphics object Value: string (read-only)Default: uicontrolUserData User-specified data Value: matrix2-527
- Page 505 and 506: surfaceRemarksUnlike high-level are
- Page 507 and 508: surfaceObjectHierarchyRootFigureAxe
- Page 509 and 510: surfaceProperty Name Property Descr
- Page 511 and 512: surfaceProperty Name Property Descr
- Page 513 and 514: Surface PropertiesButtonDownFcn str
- Page 515 and 516: Surface PropertiesEdgeColor{ColorSp
- Page 517 and 518: Surface PropertiesFaceColorColorSpe
- Page 519 and 520: Surface Propertiesgetframe, or paus
- Page 521 and 522: Surface PropertiesMarkerSize size i
- Page 523 and 524: Surface PropertiesVertexNormals vec
- Page 525 and 526: surfllight source, use surfl(X',Y',
- Page 527 and 528: surfnormPurpose2surfnormCompute and
- Page 529 and 530: terminalPurpose2terminalSet graphic
- Page 531 and 532: texlabelPurpose2texlabelProduce TeX
- Page 533 and 534: textPurpose2textCreate text object
- Page 535 and 536: textannotate the point at (pi,0) wi
- Page 537 and 538: textProperty Name Property Descript
- Page 539 and 540: textProperty Name Property Descript
- Page 541 and 542: Text PropertiesCreateFcnstringCallb
- Page 543 and 544: Text PropertiesExtentposition recta
- Page 545 and 546: Text PropertiesWhen a handle is not
- Page 547 and 548: Text PropertiesPosition[x,y,[z]]Loc
- Page 549 and 550: Text PropertiesCharacterSequenceSym
- Page 551 and 552: Text PropertiesVerticalAlignment to
- Page 553 and 554: titlePurpose2titleAdd title to curr
- Page 555: trimeshPurpose2trimeshTriangular me
- Page 559 and 560: uicontextmenuWhen the user extend-c
- Page 561 and 562: uicontextmenu Propertiesdefines a d
- Page 563 and 564: uicontextmenu Propertieswhere vecto
- Page 565 and 566: uicontrolString property (even thou
- Page 567 and 568: uicontrolProperty Name Property Des
- Page 569 and 570: uicontrolProperty Name Property Des
- Page 571 and 572: uicontrolObjectHierarchyRootFigureA
- Page 573 and 574: uicontrol Propertiesinterrupting ca
- Page 575 and 576: uicontrol Properties• on - The ui
- Page 577 and 578: uicontrol PropertiesFixedWidthFontN
- Page 579 and 580: uicontrol Propertiesdefined, that c
- Page 581 and 582: uicontrol Properties• Toggle butt
- Page 583 and 584: uicontrol PropertiesFor multiple li
- Page 585 and 586: uicontrol PropertiesSet the Value p
- Page 587 and 588: uigetfileSee Alsouiputfile2-557
- Page 589 and 590: uimenuYou can set and query propert
- Page 591 and 592: uimenuExamplesThis example creates
- Page 593 and 594: uimenu Propertiescallbacks; see the
- Page 595 and 596: uimenu PropertiesForegroundColor Co
- Page 597 and 598: uimenu Propertiescharacter while th
- Page 599 and 600: uiputfilePurpose2uiputfileInteracti
- Page 601 and 602: uiresume, uiwaitPurpose2uiresume, u
- Page 603 and 604: uisetfontPurpose2uisetfontModify fo
- Page 605 and 606: viewPurpose2viewViewpoint specifica
trisurfPurpose2trisurfTriangular surface plotSyntaxDescriptiontrisurf(Tri,X,Y,Z)trisurf(Tri,X,Y,Z,C)trisurf(...'PropertyName',PropertyValue...)h = trisurf(...)trisurf(Tri,X,Y,Z) displays triangles defined in the m-by-3 face matrix Trias a surface. Each row of Tri defines a single triangular face by indexing intothe vectors or matrices that contain the X, Y, and Z vertices.trisurf(Tri,X,Y,Z,C) specifies color defined by C in the same manner as thesurf function. <strong>MATLAB</strong> performs a linear transformation on this data toobtain colors from the current colormap.trisurf(...'PropertyName',PropertyValue...) specifies additional patchproperty names and values for the patch graphics object created by thefunction.h = trisurf(...) returns a patch handle.ExampleCreate vertex vectors and a face matrix, then create a triangular surface plot.x = rand(1,50);y = rand(1,50);z = peaks(6*x–3,6*x–3);tri = delaunay(x,y);trisurf(tri,x,y,z)See Alsopatch, surf, trimesh, delaunay2-526