In this work, we consider variable order diffusion and wave equations. The derivative is described in the Caputo sence of variable order. We use the Genocchi polynomials as basic functions and obtain operational matrices via these polynomials. These matrices and collocation method help us to convert variable order diffusion and wave equations to an algebraic system. Some examples are given to show the validity of the presented method.