/ proof-of-concept / bead-percussion
Sign in
proof-of-concept / bead-percussion
bead-percussion / matlab / helpers / bp_chain.m
10 lines · 409 BCodeBlameHistory
3% [pos, E] = bp_chain(n, len) returns positions (n-by-3) and the n-1
5% bending triplets [i-1 i i+1] (for sys.bends).
7pos = [x, zeros(n, 2)];
8E = [(1:n-1)', (2:n)'];
↑↓ move↵openescclose