%% Compute Factorial for Array Input
%  Compute factorial for array input. factorial acts element-wise on array input.

A = sym([1 3; 4 5]);
f = factorial(A)

%
% Copyright 2019 The MathWorks, Inc.