This is a static copy of a profile reportHome
strvcat (124 calls, 0.031 sec)
Generated 15-Mar-2007 12:01:45 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\strfun\strvcat.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
29 | s = char(varargin{notempty}); | 124 | 0.031 s | 99.9% |  |
22 | numinput = nargin; | 124 | 0.000 s | 0.1% |  |
27 | notempty = ~cellfun('isempty',... | 124 | 0 s | 0% |  |
23 | if numinput == 1 && is... | 124 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.031 s | 100% | |
Children (called functions)
No childrenM-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 31 |
Non-code lines (comments, blank lines) | 25 |
Code lines (lines that can run) | 6 |
Code lines that did run | 4 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 66.67 % |
Function listing
time calls line
1 function s=strvcat(varargin)
2 %STRVCAT Vertically concatenate strings.
3 % S = STRVCAT(T1,T2,T3,..) forms the matrix S containing the text
4 % strings T1,T2,T3,... as rows. Automatically pads each string with
5 % blanks in order to form a valid matrix. Each text parameter, Ti, can
6 % itself be a string matrix. This allows the creation of arbitrarily
7 % large string matrices. Empty strings in the input are ignored.
8 %
9 % S = STRVCAT(C), when C is a cell array of strings, passes each
10 % element of C as an input to STRVCAT. Empty strings in the input are
11 % ignored.
12 %
13 % STRVCAT('Hello','Yes') is the same as ['Hello';'Yes '] except
14 % that the padding is done automatically.
15 %
16 % See also CELLSTR, CHAR, STRCAT.
17
18 % Clay M. Thompson 3-20-91
19 % Copyright 1984-2004 The MathWorks, Inc.
20 % $Revision: 1.25.4.2 $ $Date: 2004/04/16 22:08:54 $
21
< 0.01 124 22 numinput = nargin;
124 23 if numinput == 1 && iscellstr(varargin{1})
24 varargin = (varargin{1});
25 end
26 % find the empty cells
124 27 notempty = ~cellfun('isempty',varargin);
28 % vertically concatenate the non-empty cells.
0.03 124 29 s = char(varargin{notempty});
30
31