In this work we consider a method for solving linear partial differential equations, specially heat and waves equations that describe behavior of temperature distribution and wave propagation in one or multidimensional environments by moving least squares procedure. We present some illustrative examples and compare our proposed method with other methods to show the efficiency of this method.