MATLAB CODE Three archives containing Matlab code for simulation with different cases. Displacement with uniform substrate.zip Displacement with variable substrate elasticity.zip Displacement with variable substrate thickness.zip Common files in all archives and their function: circle.m: Draw a single cell like a complete circle. circles.m: Calculate the initial positions of the cells. Mcircles.m: Plot cell positions. Random.m: Calculate the Brownian motion. Additional archive specific files and their function: Archive “Displacement with uniform substrate.zip”: Displacement.m: Main code that combines all other functions and calculates cell displacement on uniform substrate (i.e. with constant elasticity and thickness). distance.m: A function to compute the strain energy density and the resultant vectors in x and y directions. Archive “Displacement with variable substrate elasticity.zip”: Migration_with_different_substrate_elasticity.m: Main code that combines all functions to calculate cell displacement on a substrate with variable elastic modulus and constant thickness. Elasticity.m: A function to calculate the strain energy density with two different substrate elastic modulus and a constant substrate thickness. Archive “Displacement with variable substrate thickness.zip”: Migration_with_different_substrate_thickness.m: Main code that combines the other functions to calculate cell displacement on a substrate with variable thickness and constant elastic modulus. Thickness.m: A function to calculate the strain energy density with two different substrate thickness and constant substrate elastic modulus. SUPPLEMENTAL VIDEOS Videos showing simulations of cell migration for several cases reported in manuscript. Video numbers correspond to Figure numbers in the manuscript. Video V4A: Collective motility of 25 cells on uniform substrate with deterministic motion Video V4B: Collective motility of 25 cells on uniform substrate with random motion Video V6A: Motility of 4 cells with deterministic motion on substrate with regionally varying elastic modulus Video V6B: Motility of 15 cells with deterministic motion on substrate with regionally varying elastic modulus Video V7A: Motility of 4 cells with deterministic motion on substrate with regionally varying thickness Video V7B: Motility of 15 cells with deterministic motion on substrate with regionally varying thickness Video V8A: Motility of 45 cells with deterministic motion on uniform substrate with cell death Video V8B: Motility of 45 cells with deterministic motion on uniform substrate with cell division Video V8C: Motility of 45 cells with deterministic motion on uniform substrate with cell death and division Video V8D: Motility of 45 cells with random motion on uniform substrate with cell death and division (there is no corresponding figure in the manuscript)