Using output of a function into the integral2 Function – Unrecognized function or variable
Hello,
I’m currently facing an issue with using an output of a function into an integral.
I have attached my code for reference:
P_RAD.m
Unfortunately, for this case, I have to use a function in my code because I need it to plot certain parameters. I understand what the error is saying and why it is saying it. I’m trying to see if there is a workaround for this.
This is the integration I am trying to do: See screenshot attached: P_RAD_Integration.png
The error that I’m facing is shown below.
% Unrecognized function or variable ‘U_Rad’.
Error in Patterns (line 200)
P_rad = U_Rad.*sin(theta);Hello,
I’m currently facing an issue with using an output of a function into an integral.
I have attached my code for reference:
P_RAD.m
Unfortunately, for this case, I have to use a function in my code because I need it to plot certain parameters. I understand what the error is saying and why it is saying it. I’m trying to see if there is a workaround for this.
This is the integration I am trying to do: See screenshot attached: P_RAD_Integration.png
The error that I’m facing is shown below.
% Unrecognized function or variable ‘U_Rad’.
Error in Patterns (line 200)
P_rad = U_Rad.*sin(theta); Hello,
I’m currently facing an issue with using an output of a function into an integral.
I have attached my code for reference:
P_RAD.m
Unfortunately, for this case, I have to use a function in my code because I need it to plot certain parameters. I understand what the error is saying and why it is saying it. I’m trying to see if there is a workaround for this.
This is the integration I am trying to do: See screenshot attached: P_RAD_Integration.png
The error that I’m facing is shown below.
% Unrecognized function or variable ‘U_Rad’.
Error in Patterns (line 200)
P_rad = U_Rad.*sin(theta); integral, integration, numerical integration MATLAB Answers — New Questions