Integral2 MATLAB Function Error: Q = integral2Calc(fun,xmin,xmax,yminfun,ymaxfun,opstruct);
Hello,
I am facing an error with the "integral 2" function in MATLAB.
This is the integral I am trying to perform in MATLAB.
See screenshot attached:
Integration_MATLAB.png
Essentially, I made my integration variables "z" and "z_prime" symbolic variables in MATLAB.
This is so that I can use them throughout my analytical process of creating the equation "K".
The equation "K" is a function of "z" and "z_prime".
After I calculate K, I specify my integration boundaries for "z" and "z_prime". Then I "convert" to a "MATLAB Function"
For some reason, I keep getting the error: Q = integral2Calc(fun,xmin,xmax,yminfun,ymaxfun,opstruct);
I’ve tried looking up this error up for other cases on the MathWorks forum. I wasn’t able to find something that was relevant to my case.
I’ve tried using the "trapz" integration function in MATLAB but I wasn’t able to get anywhere with that either.
I have attached my code for reference
See code attached:
Using_Integral_2_Function.mHello,
I am facing an error with the "integral 2" function in MATLAB.
This is the integral I am trying to perform in MATLAB.
See screenshot attached:
Integration_MATLAB.png
Essentially, I made my integration variables "z" and "z_prime" symbolic variables in MATLAB.
This is so that I can use them throughout my analytical process of creating the equation "K".
The equation "K" is a function of "z" and "z_prime".
After I calculate K, I specify my integration boundaries for "z" and "z_prime". Then I "convert" to a "MATLAB Function"
For some reason, I keep getting the error: Q = integral2Calc(fun,xmin,xmax,yminfun,ymaxfun,opstruct);
I’ve tried looking up this error up for other cases on the MathWorks forum. I wasn’t able to find something that was relevant to my case.
I’ve tried using the "trapz" integration function in MATLAB but I wasn’t able to get anywhere with that either.
I have attached my code for reference
See code attached:
Using_Integral_2_Function.m Hello,
I am facing an error with the "integral 2" function in MATLAB.
This is the integral I am trying to perform in MATLAB.
See screenshot attached:
Integration_MATLAB.png
Essentially, I made my integration variables "z" and "z_prime" symbolic variables in MATLAB.
This is so that I can use them throughout my analytical process of creating the equation "K".
The equation "K" is a function of "z" and "z_prime".
After I calculate K, I specify my integration boundaries for "z" and "z_prime". Then I "convert" to a "MATLAB Function"
For some reason, I keep getting the error: Q = integral2Calc(fun,xmin,xmax,yminfun,ymaxfun,opstruct);
I’ve tried looking up this error up for other cases on the MathWorks forum. I wasn’t able to find something that was relevant to my case.
I’ve tried using the "trapz" integration function in MATLAB but I wasn’t able to get anywhere with that either.
I have attached my code for reference
See code attached:
Using_Integral_2_Function.m integral2, integral, integration, symbolic variables, symbolic toolbox, syms, integral2calc MATLAB Answers — New Questions