From: <cde...@us...> - 2010-08-24 13:29:24
|
Revision: 7568 http://octave.svn.sourceforge.net/octave/?rev=7568&view=rev Author: cdemills Date: 2010-08-24 13:29:18 +0000 (Tue, 24 Aug 2010) Log Message: ----------- - added another test for the 'end' operator Modified Paths: -------------- trunk/octave-forge/extra/dataframe/inst/dataframe Modified: trunk/octave-forge/extra/dataframe/inst/dataframe =================================================================== --- trunk/octave-forge/extra/dataframe/inst/dataframe 2010-08-24 13:27:42 UTC (rev 7567) +++ trunk/octave-forge/extra/dataframe/inst/dataframe 2010-08-24 13:29:18 UTC (rev 7568) @@ -16,6 +16,8 @@ %! y = x.df(:, 2:6); %! # direct matrix setting through struct access %! y.Freq=[(1:10).' (10:-1:1).']; +%! # verify the "end" operator on the third dim +%!assert(y(2, 2, end), 9); %! # direct setting through 3D matrix %! y(:, ["C"; "G"], 1:2) = repmat(y(:, ["C"; "G"]), [1 1 2]); %! y(4:5, 4:5) = NaN; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |