From: Walter Roberson on
Carolyn wrote:

> case 4
> g_anon = @(vec) [g{1}(vec) g{2}(vec) g{3}(vec) g{4}(vec)];

This might replace the complete switch and so on:

g_anon = @(vec) cellfun(@(G) G(vec), g);