This is a static copy of a profile report

Home

Function details for dealThis is a static copy of a profile report

Home

deal (Calls: 223104, Time: 0.412 s)
Generated 14-Jul-2019 14:56:02 using performance time.
function in file C:\Program Files\MATLAB\R2019a\toolbox\matlab\datatypes\deal.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
ff_abzr_fibs_vffunction165375
ffs_for_br_block_genfunction57729
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
39
varargout = varargin;
2231040.131 s31.7%
40
end
2231040.060 s14.7%
33
if nargin==1,
2231040.012 s2.8%
36
if nargout ~= nargin
2231040.009 s2.2%
35
else
2231040.009 s2.1%
All other lines  0.191 s46.5%
Totals  0.412 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
33Extra comma is unnecessary in IF statement before newline.
Coverage results
Show coverage for parent directory
Total lines in function40
Non-code lines (comments, blank lines)32
Code lines (lines that can run)8
Code lines that did run5
Code lines that did not run3
Coverage (did run/can run)62.50 %
Function listing
time 
Calls 
 line
   1 
function varargout = deal(varargin)
   2 
%DEAL Deal inputs to outputs.
   3 
%    [A,B,C,...] = DEAL(X,Y,Z,...) simply matches up the input and
   4 
%       output lists.  It is the same as A=X, B=Y, C=Z, ...
   5 
%    [A,B,C,...] = DEAL(X) copies the single input to all
   6 
%       the requested outputs.  It is the same as A=X, B=X, C=X, ...
   7 
%
   8 
%    DEAL is most useful when used with cell arrays and structures
   9 
%    via comma separated list expansion.  Here are some useful
  10 
%    constructions:
  11 
%    [S.FIELD] = DEAL(X) sets all the fields with the name FIELD
  12 
%       in the structure array S to the value X.  If S doesn't
  13 
%       exist, use [S(1:M).FIELD] = DEAL(X);
  14 
%    [X{:}] = DEAL(A.FIELD) copies the values of the field with
  15 
%       name FIELD to the cell array X.  If X doesn't exist,
  16 
%       use [X{1:M}] = DEAL(A.FIELD).
  17 
%    [A,B,C,...] = DEAL(X{:}) copies the contents of the cell
  18 
%       array X to the separate variables A,B,C,...
  19 
%    [A,B,C,...] = DEAL(S.FIELD) copies the contents of the fields
  20 
%       with the name FIELD to separate variables A,B,C,...
  21 
%
  22 
%    Examples:
  23 
%       sys = {rand(3) ones(3,1) eye(3) zeros(3,1)};
  24 
%       [a,b,c,d] = deal(sys{:});
  25 
%
  26 
%       direc = dir; filenames = {};
  27 
%       [filenames{1:length(direc),1}] = deal(direc.name);
  28 
%
  29 
%    See also LISTS, PAREN.
  30 

  31 
%   Copyright 1984-2005 The MathWorks, Inc. 
  32 

  0.012 
 223104 
  33
if nargin==1, 
  34 
  varargout = varargin(ones(1,nargout));
  0.009 
 223104 
  35
else 
  0.009 
 223104 
  36
  if nargout ~= nargin 
  37 
    error(message('MATLAB:deal:narginNargoutMismatch'))
  38 
  end
  0.131 
 223104 
  39
  varargout = varargin; 
  0.060 
 223104 
  40
end 

Other subfunctions in this file are not included in this listing.