Here is an example of using surf to build a 2D matrix in Matlab.
The code:
x_offset = [78, 216, 150, 342, 258, 336; 168, 174, 174, 222, 150, 246; 36, 180, 54, 138, 138, 198; 60, -72, 90, 66, 114, 36; -90, -108, -60, 12, 54, -24; -42, -78, -138, -42, -12, -114; -108, -30, -108, -66, -156, -114; -66, -114, -114, -84, -138, -96]; figure(1), surf(x_offset); xlabel('X'), ylabel('Y'), title('X-offset Error Distribution');
Output:

sagunms
source share