Mercurial > hg > octave-lyh
comparison scripts/general/structfun.m @ 11190:b1f4bdc276b6
Use CamelCase for 'UniformOutput' option to cellfun.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 03 Nov 2010 17:37:00 -0700 |
parents | a4f482e66b65 |
children | c776f063fefe |
comparison
equal
deleted
inserted
replaced
11189:a3cb42b394eb | 11190:b1f4bdc276b6 |
---|---|
138 | 138 |
139 %!test | 139 %!test |
140 %! s = struct ("a", {1, 2, 3}, "b", {4, 5, 6}); | 140 %! s = struct ("a", {1, 2, 3}, "b", {4, 5, 6}); |
141 %! c = struct ("a", {2, 4, 6}, "b", {8, 10, 12}); | 141 %! c = struct ("a", {2, 4, 6}, "b", {8, 10, 12}); |
142 %! d = struct ("a", {1, 4, 9}, "b", {16, 25, 36}); | 142 %! d = struct ("a", {1, 4, 9}, "b", {16, 25, 36}); |
143 %! [aa, bb] = structfun(@twoouts, s, "uniformoutput", false); | 143 %! [aa, bb] = structfun(@twoouts, s, "UniformOutput", false); |
144 %! assert(aa, c); | 144 %! assert(aa, c); |
145 %! assert(bb, d); | 145 %! assert(bb, d); |