⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assign.m

📁 The MatlabBGL library fills a hole in Matlab s suite of algorithms. Namely, it provides a rich set o
💻 M
字号:
function ipi = assign(ipi,y,varargin)
% IPINT32/ASSIGN Assign an entire in-place int32.
%
% assign(ipi,y) overwrites the contents of ipi with y.  The size of ipd and
% y must match.
%
% Example:
%    ipi = ipint32(int32(ones(5,1)));
%    assign(ipi,int32(3*ones(5,1)));

if (isempty(x))

    if any(size(size(ipi)) ~= size(size(y))) || ...
       any(size(ipi) ~= size(y))
        error('ipdouble:invalidParameter','In assign(ipd,y) size(ipd) must equal size(y).');
    end;

    subs = {':'};
    S = struct('type','()','subs',[]);
    S.subs = subs;
    subsasgn(ipi,S,y);
else
    S = struct('type','()','subs',[]);
    S.subs = varargin;
    subsasgn(ipi,S,y);
end;

⌨️ 快捷键说明

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