www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/+mbcgui/+widget/@ClassicTable/convertToCell.m

    function hcell = convertToCell(~,hcell, h, Rstart, Cstart)
%convertToCell

% Copyright 2015 The MathWorks, Inc. and Ford Global Technologies, Inc.
[nR_h, nC_h] = size(h);
Rstart_adj = Rstart-1;
Cstart_adj = Cstart-1;
for n = Rstart:(Rstart_adj+nR_h)
    n_hindex = n-Rstart_adj;
    for m = Cstart:(Cstart_adj+nC_h)
        hcell{n, m} = h(n_hindex, m-Cstart_adj);
    end
end
end