1D FEM solution using basic linear elements?

−u''+au=f with given a>0 and f(x), 1−periodic in x.
How can I code up the finite element method with basic linear elements for the problem? And the code should be able to handle any given discrete grid.

Answers (0)

Categories

Find more on Accelerators & Beams in Help Center and File Exchange

Asked:

on 4 Feb 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!