Discussion Overview
The discussion revolves around troubleshooting a MATLAB function intended to plot a polynomial equation, specifically examining the use of the fplot function and the appropriate range for plotting. The context includes homework-related queries and coding practices in MATLAB.
Discussion Character
- Homework-related
- Technical explanation
- Conceptual clarification
Main Points Raised
- One participant presents a function intended to plot the equation y = x^4 - 4x^3 - 6x^2 + 15 but encounters an error when using fplot.
- Another participant questions why the function returns a vector and suggests that fplot requires a different approach to defining the function.
- There is a discussion about the range of values for plotting, with one participant noting that the problem specifies a range from -3 to 6, while another participant initially used 0 to 10000.
- Participants discuss the implications of using a for loop to generate values for plotting and the necessity of defining the function correctly for fplot to work.
- Advice is given regarding polynomial coding practices to avoid rounding errors, suggesting a more stable method for evaluating polynomials.
Areas of Agreement / Disagreement
Participants express differing views on the correct approach to defining the function for fplot, the appropriate range for plotting, and the necessity of returning a vector. The discussion remains unresolved regarding the best practices for using fplot versus plot.
Contextual Notes
There are limitations in the understanding of how to properly use fplot and the implications of the specified range in the homework problem. Some assumptions about the function's output and the plotting method are not fully clarified.