📄 reshape.m
字号:
function mm = reshape(mm,size)
% RESHAPE(MM,SIZE) Changes the dimension or/and dimension size of MM.
%
% RESHAPE(MM,[]) does not change the existing SIZE property of MM.
%
% Example: If 'x' is an embedded symbol,
% mm = symobj(cc,'x')
% and if 'mm.read' gives [4 5]
% reshape(mm,[2 2]) will give
% [4 5; 2 3]
%
% Copyright 2002 The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 2002/03/29 13:35:18 $
error(nargchk(2,2,nargin));
if ~ishandle(mm),
error('First Parameter must be a NUMERIC Handle.');
end
if ~isnumeric(size),
error('SIZE must be a numeric.');
end
if ~isempty(size),
mm.size = size;
% else, use existing size info
end
% [EOF] reshape.m
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -