EdgeID = cellEdges(g,RegionID,FilterType)
returns internal, external, or all edges belonging to the boundaries of the cells with ID
numbers listed in RegionID.
Find all edges belonging to the boundaries of the outer cell. Show the first 10 edges.
edgeIDs = cellEdges(gm,2);
edgeIDs(1:10)
ans = 1×10
1 2 3 4 5 6 7 8 9 10
From all edges belonging to the boundaries of the outer cell, return the edges belonging to only the internal faces. Internal faces are faces shared between multiple cells.
edgeIDs_int = cellEdges(gm,2,"internal")
edgeIDs_int = 1×4
9 10 11 12
From all edges belonging to the boundaries of the outer cell, return the edges belonging to the external faces. Show the first 10 edges.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.