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

📄 cpeval.m

📁 CELP (CELl Processing) is a functional programming package for Matlab. It is often better to use FP
💻 M
字号:
function y = cpeval(m,f,varargin)%CPEVAL Evaluate multioutput function and return outputs in cell array.%   Y = CPEVAL(M,F,X1,...Xn) returns Y = {Y1,...YM} s.t. [Y1,...YM] =%   F(X1,...Xn).%%   Examples%   --------%%   %Getting the second output of sort%   feval(@(x) x{2},cpeval(2,@sort,rand(100,1)))%%   %Applying cell2mat to multiply outputs from cpmap%   [x,y] = feval(...%       @(x) deal(x{:}),...%       cpmap(...%           @cell2mat,...%           cpeval(2,@cpmap,@size,{ones(1,2),ones(3,4)})...%        )...%   )    [y{1:m}] = f(varargin{:});end

⌨️ 快捷键说明

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