I think the function you want to plot consist in three variables, so plot is as follows
Plot[f[x,y,z],{x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax}]
in your case the vairables are m,k,p
but maybe one of them is constant or two of them. you know
If is three dimensional is Plot3D[.....]