From: <par...@us...> - 2012-03-07 17:23:02
|
Revision: 9768 http://octave.svn.sourceforge.net/octave/?rev=9768&view=rev Author: paramaniac Date: 2012-03-07 17:22:56 +0000 (Wed, 07 Mar 2012) Log Message: ----------- control-devel: add comments Modified Paths: -------------- trunk/octave-forge/extra/control-devel/inst/@iddata/cat.m Modified: trunk/octave-forge/extra/control-devel/inst/@iddata/cat.m =================================================================== --- trunk/octave-forge/extra/control-devel/inst/@iddata/cat.m 2012-03-07 17:06:48 UTC (rev 9767) +++ trunk/octave-forge/extra/control-devel/inst/@iddata/cat.m 2012-03-07 17:22:56 UTC (rev 9768) @@ -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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |