Mercurial > forge
changeset 9582:2d0e72ab2200 octave-forge
control-devel: add comments
author | paramaniac |
---|---|
date | Wed, 07 Mar 2012 17:22:56 +0000 |
parents | c9da8bebaef1 |
children | e29c0c3766b8 |
files | extra/control-devel/inst/@iddata/cat.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/control-devel/inst/@iddata/cat.m Wed Mar 07 17:06:48 2012 +0000 +++ b/extra/control-devel/inst/@iddata/cat.m Wed Mar 07 17:22:56 2012 +0000 @@ -127,10 +127,14 @@ function bool = compare_strings (str, varargin) if (nargin > 1) + ## compare n-th string of first cell with n-th string of remaining cells tmp = cellfun (@(x) strcmp (str, x), varargin, "uniformoutput", false); + ## check whether all strings of each pair are equal tmp = cellfun (@all, tmp); + ## check whether all pairs are equal bool = all (tmp); else + ## one or no cell at all is always equal to itself bool = true; endif