How to plot a shape function of triangular element with 3 nodes ?
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Mark Schoen
el 15 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!