s = 'abc'; t = 'cde';
contains(s, t)
ismember(s, t)
max(ismember(s, t))
min(ismember(s, t))
s = 'abc'
sum(isletter(s) + isstrprop(s, 'digit')) >= 3
(sum(isletter(s)) >= 2) | (sum(isstrprop(s, 'digit')) >= 1)
(sum(isletter(s)) >= 2) & (sum(isstrprop(s, 'digit')) >= 1)
s = 'aacc'; t = 'abbc';
sum(s) == sum(t)
sum(ismember(s, t)) == length(t)
sum(sort(s) == sort(t)) == length(t)
maxFun1(@sin, @(x)(sin(2 * x)), 1)
h = maxFun2(@sin, @(x)(sin(2 * x))); h(1)
maxFun(@(x)(-x.^2), -2:2)
h = noise1(@sqrt, @(x)(x.^2), 0.5); h(4)
h = noise2(@sqrt, @(x)(x.^2)); h(4) == h(4)
function mfg = maxFun1(f, g, x)
    mfg = max(f(x), g(x));
end
function mfg = maxFun2(f, g)
    mfg = @(x)(max(f(x), g(x)));
end
function h = maxFun(f, x)
    h = max(f(x));
end
function h = noise1(f, g, v)
    h = @(x)(f(x) + v * g(x))
end
function h = noise2(f, g)
    h = @(x)(f(x) + rand() * g(x));
end


