How to plot a shape function of triangular element with 3 nodes ?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi guys
I want to plot a shape function of triangular element with its equations in matlab but I can't find a way to plot a triangular area with 3 equation
I know that we can plot it with 3 points but I want to plot it with its equations of shape functions similar to below picture :
0 Commenti
Risposte (1)
Mark Schoen
il 15 Ott 2019
The best way to approach plotting a filled polygonal region is to use the "patch" function,
which requires the (x,y,z) coordinates of each vertex of the shape.
For a triangle, you have three equations, each corresponding to one side, so your three vertices will be given by the intersection points between different pairs of lines. To calculate intersection points, use the "solve" function. For an example of how to use "solve" on a system of two equations, type the following into the MATLAB Command Window:
>> openExample('symbolic/SolveMultivariateEquationsAndAssignOutputsToVariablesExample')
Also, once you have plotted the 3 vertices with "patch", use the command "view(3)" to see the plot in three dimensions.
0 Commenti
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!