function fs_abcd = abcd_free_space( distance) % abcd matrix for the free space region of given distance if (length(distance) == 1) fs_abcd=[1, distance; 0,1]; else for i=length(distance):-1:1 fs_abcd{i}=[1, distance(i); 0,1]; end end end