Если вам действительно нужен график, вы можете сделать это с помощью функции, подобной этой:
function plotGrid(x)
dims = size(x);
% Get grid
tick_x = linspace(0, 1, dims(2)+1);
tick_y = linspace(0, 1, dims(1)+1);
% Get center points
pt_x = (0.5:dims(2)) / dims(2);
pt_y = (0.5:dims(1)) / dims(1);
[pt_x pt_y] = meshgrid(pt_x, pt_y);
% Plot
figure; hold on; axis off
plot([tick_x; tick_x], repmat((0:1)', 1, dims(2)+1), 'k')
plot(repmat((0:1)', 1, dims(1)+1), [tick_y; tick_y], 'k')
text(pt_x(:), pt_y(:), x(:), 'HorizontalAlignment', 'center')
Например:
>> x = num2cell(randi(10, [10 6]));
>> plotGrid(x)
![enter image description here](https://i.stack.imgur.com/45SYQ.png)