%
% draw a deformed biomembrane
%

t = 0:.01:1;

sx = t;
sy = sin(4*pi*t);

mx = cos(2*pi*t);
my = sin(2*pi*t);

s = 1/sqrt(2);
dx = [s 6-s];
dy = dx;

lx = [0 4];
ly = [0 0];

x = 100*[-0.0034
    0.0055
    0.0011
    0.0030
    0.0018
    0.0058
   -0.0030
    0.0003
   -0.0000
   -0.0007
    0.0036
   -0.0001
   -0.0052
   -0.0050
    0.0000
   -0.0036
    0.0051
   -0.0052];

for h=1:3,

    plot(mx,my+(h-1)*6)
    hold on
    plot(mx+x(1+(h-1)*6),my+(h-1)*6 - x(2+(h-1)*6),'r')
    plot(mx+6,my+(h-1)*6)
    plot(mx+6+x(3+(h-1)*6),my+(h-1)*6 - x(4+(h-1)*6),'r')
    plot(mx+12,my+(h-1)*6)
    plot(mx+12+x(5+(h-1)*6),my+(h-1)*6 - x(6+(h-1)*6),'r')

end

axis equal
grid
%axis off
hold off

