function [b] = meshgrid_example(c,r) disp('[C,R] = meshgrid(1:c,1:r)') [C,R] = meshgrid(1:c,1:r) pause disp('b = C.^2 + R.^2') b = C.^2 + R.^2