See this example: Specify parametric grid
[X,Y] = meshgrid(-3:6/17:3)
X = 18x18
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
-3.0000 -2.6471 -2.2941 -1.9412 -1.5882 -1.2353 -0.8824 -0.5294 -0.1765 0.1765 0.5294 0.8824 1.2353 1.5882 1.9412 2.2941 2.6471 3.0000
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
Y = 18x18
-3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000 -3.0000
-2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471 -2.6471
-2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941 -2.2941
-1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412 -1.9412
-1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882 -1.5882
-1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353 -1.2353
-0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824 -0.8824
-0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294 -0.5294
-0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765 -0.1765
0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765 0.1765
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
XX = 2*X.*Y
XX = 18x18
18.0000 15.8824 13.7647 11.6471 9.5294 7.4118 5.2941 3.1765 1.0588 -1.0588 -3.1765 -5.2941 -7.4118 -9.5294 -11.6471 -13.7647 -15.8824 -18.0000
15.8824 14.0138 12.1453 10.2768 8.4083 6.5398 4.6713 2.8028 0.9343 -0.9343 -2.8028 -4.6713 -6.5398 -8.4083 -10.2768 -12.1453 -14.0138 -15.8824
13.7647 12.1453 10.5260 8.9066 7.2872 5.6678 4.0484 2.4291 0.8097 -0.8097 -2.4291 -4.0484 -5.6678 -7.2872 -8.9066 -10.5260 -12.1453 -13.7647
11.6471 10.2768 8.9066 7.5363 6.1661 4.7958 3.4256 2.0554 0.6851 -0.6851 -2.0554 -3.4256 -4.7958 -6.1661 -7.5363 -8.9066 -10.2768 -11.6471
9.5294 8.4083 7.2872 6.1661 5.0450 3.9239 2.8028 1.6817 0.5606 -0.5606 -1.6817 -2.8028 -3.9239 -5.0450 -6.1661 -7.2872 -8.4083 -9.5294
7.4118 6.5398 5.6678 4.7958 3.9239 3.0519 2.1799 1.3080 0.4360 -0.4360 -1.3080 -2.1799 -3.0519 -3.9239 -4.7958 -5.6678 -6.5398 -7.4118
5.2941 4.6713 4.0484 3.4256 2.8028 2.1799 1.5571 0.9343 0.3114 -0.3114 -0.9343 -1.5571 -2.1799 -2.8028 -3.4256 -4.0484 -4.6713 -5.2941
3.1765 2.8028 2.4291 2.0554 1.6817 1.3080 0.9343 0.5606 0.1869 -0.1869 -0.5606 -0.9343 -1.3080 -1.6817 -2.0554 -2.4291 -2.8028 -3.1765
1.0588 0.9343 0.8097 0.6851 0.5606 0.4360 0.3114 0.1869 0.0623 -0.0623 -0.1869 -0.3114 -0.4360 -0.5606 -0.6851 -0.8097 -0.9343 -1.0588
-1.0588 -0.9343 -0.8097 -0.6851 -0.5606 -0.4360 -0.3114 -0.1869 -0.0623 0.0623 0.1869 0.3114 0.4360 0.5606 0.6851 0.8097 0.9343 1.0588
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
YY = X.^2 - Y.^2
YY = 18x18
0 -1.9931 -3.7370 -5.2318 -6.4775 -7.4740 -8.2215 -8.7197 -8.9689 -8.9689 -8.7197 -8.2215 -7.4740 -6.4775 -5.2318 -3.7370 -1.9931 0
1.9931 0 -1.7439 -3.2388 -4.4844 -5.4810 -6.2284 -6.7266 -6.9758 -6.9758 -6.7266 -6.2284 -5.4810 -4.4844 -3.2388 -1.7439 0 1.9931
3.7370 1.7439 0 -1.4948 -2.7405 -3.7370 -4.4844 -4.9827 -5.2318 -5.2318 -4.9827 -4.4844 -3.7370 -2.7405 -1.4948 0 1.7439 3.7370
5.2318 3.2388 1.4948 0 -1.2457 -2.2422 -2.9896 -3.4879 -3.7370 -3.7370 -3.4879 -2.9896 -2.2422 -1.2457 0 1.4948 3.2388 5.2318
6.4775 4.4844 2.7405 1.2457 0 -0.9965 -1.7439 -2.2422 -2.4913 -2.4913 -2.2422 -1.7439 -0.9965 0 1.2457 2.7405 4.4844 6.4775
7.4740 5.4810 3.7370 2.2422 0.9965 0 -0.7474 -1.2457 -1.4948 -1.4948 -1.2457 -0.7474 0 0.9965 2.2422 3.7370 5.4810 7.4740
8.2215 6.2284 4.4844 2.9896 1.7439 0.7474 0 -0.4983 -0.7474 -0.7474 -0.4983 0 0.7474 1.7439 2.9896 4.4844 6.2284 8.2215
8.7197 6.7266 4.9827 3.4879 2.2422 1.2457 0.4983 0 -0.2491 -0.2491 0 0.4983 1.2457 2.2422 3.4879 4.9827 6.7266 8.7197
8.9689 6.9758 5.2318 3.7370 2.4913 1.4948 0.7474 0.2491 0 0 0.2491 0.7474 1.4948 2.4913 3.7370 5.2318 6.9758 8.9689
8.9689 6.9758 5.2318 3.7370 2.4913 1.4948 0.7474 0.2491 0 0 0.2491 0.7474 1.4948 2.4913 3.7370 5.2318 6.9758 8.9689
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
colorscale = [1:18; 18:-1:1];
C = repmat(colorscale,9,1);
pcolor(XX,YY,C);