Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cb=@(x)(x^3);
- r = applyfn(5, cb);
- disp(r)
- function r = applyfn(x, f)
- r = f(x);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement