Discussion Overview
The discussion revolves around a problem related to developing a MATLAB function for calculating the volume of liquid in a partially filled ellipsoid-shaped tank. Participants are attempting to create a plot of volume versus depth and are encountering issues with function inputs and definitions.
Discussion Character
- Homework-related
- Technical explanation
- Debate/contested
Main Points Raised
- One participant presents the formula for the volume of the liquid and the initial lines of the MATLAB function, expressing uncertainty about the implementation.
- Another participant notes that the variable h should only range from 0 to 2*a, questioning why it was initially set to run from 0 to 3*a.
- A participant reports an error related to function definitions not being permitted in the context, indicating a potential issue with how the function is structured.
- Another participant suggests that the function should be able to calculate the full volume of the ellipsoid given the dimensions, implying that further debugging is necessary if it cannot.
- One participant encounters an error stating "Not enough input arguments," suggesting a mismatch between the function call and its definition.
- A later reply proposes that there may be a misunderstanding regarding the number of arguments expected by the function, suggesting the possibility of using dummy variable names to troubleshoot the issue.
Areas of Agreement / Disagreement
Participants express varying levels of agreement on the nature of the errors encountered, with some focusing on the function definition and others on the input arguments. There is no consensus on the specific solution to the problem, and multiple viewpoints on the issues remain present.
Contextual Notes
Participants have not provided the complete function definition, which limits the ability to diagnose the issues fully. There is also uncertainty regarding how MATLAB handles numeric arguments and function definitions in this context.