mat2celldefault.m

来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 11 行

M
11
字号
function y = mat2cellDefault(x)

%% uses the built-in mat2cell, but instead of having
%% to specify all the row lengths, and all the column lengths,
%% this assumes that x stores only one numeric entry per cell entry

[r,c]=size(x);

rr = ones(1,r);
cc = ones(1,c);
y = mat2cell(x,rr,cc);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?