What you're doing looks fine, but I don't know what val1 and val2 were. If I do this:
contour(X,Y,mvd,[.04e-3, .12e-3])
I get two levels.
If you do this:
[~,h] = contour(X,Y,mvd)
then h will be a handle to a contour object. You can then ask it what its doing and try different levels.
For example,
get(h,'LevelList')
ans =
1.0e-03 *
0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18
Do those values look like the ones you were passing in?
You can then change the levels like this:
set(h,'LevelList',[.03 .09]*1e-3)
