If you want to evaluate them as statements:
theta = pi/2; % Choose A Value
x = linspace(0, 2*pi, 50);
f1 = 3*cos(x+2*theta)
f2 = 3*exp(-3*x/pi)
f1 = @(x,theta) 3*cos(x+2*theta)
f2 = @(x) 3*exp(-3*x/pi)
then call them as you would any other function.
For ‘f1’, the easiest way to evaluate it with multiple (vector) values for ‘x’ and ‘theta’ is to use the results of the meshgrid (link) function.