Discussion Overview
The discussion revolves around how to plot functions in MATLAB, specifically focusing on plotting a function against its argument without defining discrete points on the x-axis. Participants explore the concept of continuous plotting and the limitations of MATLAB in representing real numbers.
Discussion Character
- Homework-related, Technical explanation, Conceptual clarification, Debate/contested
Main Points Raised
- One participant describes their function y = 3x + 2 and expresses a desire to plot it against its argument rather than a vector.
- Another participant explains that plotting y = f(x) involves ordered pairs (x, f(x)), suggesting that the original question may not be clear.
- A participant clarifies their intent to plot functions like sin(x) over a continuous range, rather than discrete points.
- Some participants suggest using more points to create a smoother graph, while others emphasize that MATLAB requires discrete arrays for plotting.
- One participant questions the possibility of plotting a function with continuous values on the x-axis without defining discrete points.
- Another participant mentions the use of the linspace function to generate a specified number of points for smoother curves.
- A later reply discusses the limitations of computers in representing real numbers, noting that they use rational numbers and thus cannot achieve true continuity in plotting.
- One participant introduces a different plotting scenario involving 3D data and questions how to implement it in MATLAB.
Areas of Agreement / Disagreement
Participants generally agree that MATLAB requires discrete points for plotting, but there is some disagreement about the interpretation of continuous plotting and the use of functions like linspace. The discussion remains unresolved regarding the possibility of plotting functions with truly continuous values on the x-axis.
Contextual Notes
Limitations include the dependence on discrete representations of real numbers in MATLAB, which affects how functions can be plotted. The discussion also highlights the need for finite arrays in plotting functions.