I've read MatLab documentatin on how to assemble the stiffness matrix for the finite element approach.
The sintax is
[K,M,F] = assema(p,t,c,a,f) #assembles the matrices from the mesh data in p and t
Here c,a,f
are just the cofficients like 0 or 1 and are not of interesent for the purpose of the question.
In this example, p
and t
are already computed by the command initmesh
.
My question is the following: I have a triangulation that has been given to me from an other people, so I already have p
and t
, and I want to run the assema
command. The format is the same of the one of matlab, but I don't understand why it doesn't work. Maybe because it's not generated by the command initmesh
?
More answer...