Discussion Overview
The discussion revolves around troubleshooting issues with the "pdepe" function in MATLAB, specifically regarding input arguments and function compatibility. Participants are exploring the setup of the function and its components, including the PDE function, initial conditions, and boundary conditions.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant expresses uncertainty about receiving an error related to insufficient input arguments in their implementation of the "pdepe" function.
- Another participant suggests checking the placement of function pointers and indicates that there may be additional issues beyond just the input arguments.
- A participant reports an error message indicating that the output dimensions of the function do not match what "pdepe" expects, specifically regarding the variable 'c'.
- It is proposed that the user should verify that the number and types of input and output arguments in their functions align with the expectations of "pdepe".
- One participant notes that despite having similar constants as in an example they referenced, they still encounter issues, suggesting that the problem may lie with the value of 'c'.
- Another participant recommends running the example provided in the link to compare against the user's implementation.
- A participant expresses frustration with MATLAB's built-in functions, suggesting that writing custom code may be more efficient than navigating the complexities of the built-in functions.
- One participant shares a successful modification to the code, indicating that using function handles for 'pdefun', 'icfun', and 'bcfun' resolved the issue.
- Another participant mentions that adding a line to define 'Q' as a function handle also resolved their issues.
Areas of Agreement / Disagreement
Participants do not reach a consensus on the specific cause of the errors, as multiple competing views and suggestions are presented regarding the setup and function compatibility.
Contextual Notes
Participants highlight potential limitations in understanding how "pdepe" interacts with user-defined functions, particularly concerning the expected input and output formats.