comparison scripts/general/arrayfun.m @ 9622:40cbcdf12b54

fix broken tests
author Jaroslav Hajek <highegg@gmail.com>
date Sun, 06 Sep 2009 08:06:54 +0200
parents eb63fbe60fab
children 4cf195710ae8
comparison
equal deleted inserted replaced
9621:3ee9029931b3 9622:40cbcdf12b54
244 %! assert (isempty (A.message), false); 244 %! assert (isempty (A.message), false);
245 %! assert (A.index, 1); 245 %! assert (A.index, 1);
246 246
247 %% Input arguments can be of type numeric 247 %% Input arguments can be of type numeric
248 %!test 248 %!test
249 %! A = arrayfun (@(x,y) x>y, [1.1, 4.2], [3.1, 2+6*i]); 249 %! A = arrayfun (@(x,y) x>y, [1.1, 4.2], [3.1, 2+3*i]);
250 %! assert (A, [false, true]); 250 %! assert (A, [false, true]);
251 %!test 251 %!test
252 %! A = arrayfun (@(x,y) x>y, [1.1, 4.2; 2, 4], [3.1, 2; 2, 4+2*i], "UniformOutput", true); 252 %! A = arrayfun (@(x,y) x>y, [1.1, 4.2; 2, 4], [3.1, 2; 2, 4+2*i], "UniformOutput", true);
253 %! assert (A, [false, true; false, false]); 253 %! assert (A, [false, true; false, false]);
254 %!test 254 %!test