# HG changeset patch # User Rik # Date 1305477626 25200 # Node ID 2e9cf640379b9361fa1a9701017e251824afb1a9 # Parent f83ec5ab90adf7a8dc285b0df5624bbe8abe7d57 trapz.m, cumtrapz.m: Quote ':' in initialization statement to prevent it being interpreted as colon operator. * trapz.m cumtrapz.m: Quote ':' in initialization statement. diff -r f83ec5ab90ad -r 2e9cf640379b scripts/general/cumtrapz.m --- a/scripts/general/cumtrapz.m Sun May 15 07:04:32 2011 -0700 +++ b/scripts/general/cumtrapz.m Sun May 15 09:40:26 2011 -0700 @@ -83,7 +83,7 @@ endif n = sz(dim); - idx1 = idx2 = repmat ({:}, [nd, 1]); + idx1 = idx2 = repmat ({':'}, [nd, 1]); idx1{dim} = 2 : n; idx2{dim} = 1 : (n - 1); diff -r f83ec5ab90ad -r 2e9cf640379b scripts/general/trapz.m --- a/scripts/general/trapz.m Sun May 15 07:04:32 2011 -0700 +++ b/scripts/general/trapz.m Sun May 15 09:40:26 2011 -0700 @@ -97,7 +97,7 @@ endif n = sz(dim); - idx1 = idx2 = repmat ({:}, [nd, 1]); + idx1 = idx2 = repmat ({':'}, [nd, 1]); idx1{dim} = 2 : n; idx2{dim} = 1 : (n - 1);