I am trying to model the time evolution of a membrane based on the following code in MATLAB. The membrane starts as 360 nodes given by
x_i = (5+0.5sin(40