How to plot a triangular shape function on a triangular domain?
30 views (last 30 days)
Soroush Asarzadeh on 25 Apr 2016
Hello, I want to plot the following shape function: N(s,t)=t*(2*t-1) It has to look like the following diagramm:
but I get this one:
Here is my code:
I know that the problem is with the rectangular domain, that meshgrid generates. But I don't know how to define a triangular domain. Has anybody an idea?