How to do the numerical integration of a variable in a binary function in matlab?

Can't you use int function?

Let me give you a general example:

Let z = axy+ times 2, where A and B are constants and X and Y are variables.

Let's find a = 1, b = 2 and x = 3. To find the integral of y to [0, 1], the steps are as follows:

First, execute the following command: YY = int ('a * x * y+b * y 2',' y', 0, 1).

The following results will be displayed:

yy =

1/2*a*x+ 1/3*b

Then enter the following command:

a = 1; b = 2; x = 3;

yyyyy=subs(yy)

The results are as follows:

yyyyy =

2. 1667

I don't know. Is that clear? ! ! ! ! ! !