displayData相对来说还比较简单。
主要功能就是显示X矩阵中的一个一个的样本。
主要是计算display_rows,display_cols,example_width,example_height.
图片与图片之间放上pad进行填充,然后使用imagesc进行展示。
function [h, display_array] = displayData(X, example_width)
%DISPLAYDATA Display 2D data in a nice grid
% [h, display_array] = DISPLAYDATA(X, example_width) displays 2D data
% stored in X in a nice grid. It returns the figure handle h and the
% displayed array if requested.
% Set example_width automatically if not passed in
if ~exist('example_w