The energy E(G) of a graph G is the sum of the absolute values of the eigenvalues of G of its adjacency matrix. The Laplacian energy LE(G) of a graph G is the sum of absolute values of its Laplacian eigenvalues. In this paper, we provide a MATLAB program,to calculate the energy and Laplacian energy of certain planar graphs namely n-regular caterpillar and Necklace.