MATLAB: How to use matlab to plot a sparse matrix which looks more slightness in the XYZ coordinate?

meshplotxyz coordinate

i got the following code, and i want to draw a figure in the XYZ coordinate, using the data in targetsPos, which is a sparse matrix, and i try to use the mesh function and surface function, but the result is a little different from the one i saw in the paper, can someone give me a hand and have a check, how to plot a more slightness one using matlab in the XYZ coordinate.
the one i am trying to plot:
the one now i got using the code i show below,
how to make them looks more similar, as slightness. thank you very much
%%%%%%%
mapx = 25;
mapy = 25;
targets = 8;
targetsPos = zeros(mapx,mapy);
targetSetOne=randperm(mapx*mapy);
targetsPos(targetSetOne(1:targets))=1;
% surface(targetsPos)
meshz(targetsPos)

Best Answer

It seems that no one knows...