%% Unevaluated Integral
% Define a symbolic call to an integral \int \cos \left(x\right)\;\textrm{dx} without evaluating it. Set the 'Hold' option to true when defining the integral using the int function.

syms x
F = int(cos(x),'Hold',true)

% Use release to evaluate the integral by ignoring the 'Hold' option.

G = release(F)

%
% Copyright 2019 The MathWorks, Inc.