Discussion Overview
The discussion revolves around how to configure a surfplot in MATLAB to display only whole numbers when using the data cursor tool. Participants explore methods for evaluating a function over whole numbers and displaying results accordingly, focusing on both theoretical and practical aspects of MATLAB plotting.
Discussion Character
- Technical explanation
- Exploratory
- Debate/contested
Main Points Raised
- One participant seeks a method to ensure that the data cursor in a surfplot only shows whole number values for x, y, and z coordinates.
- Another suggests creating a 101x101 matrix of values for the expression and refers to MATLAB documentation on data cursor functionality, implying that snapping to the nearest data vertex might help achieve the desired outcome.
- A participant expresses frustration that their current approach still yields non-integer values, indicating a need for a solution that strictly adheres to whole numbers.
- Further inquiry is made about whether the participant has implemented the suggested matrix approach and if they have configured the data cursor settings as described in the MATLAB documentation.
- A later reply mentions successfully using a for loop to build a matrix and employing the plot3 function, indicating a resolution to their issue.
Areas of Agreement / Disagreement
There is no consensus on a single solution, as participants explore different methods and express varying levels of success with their approaches. Some suggestions remain untested or unresolved.
Contextual Notes
Participants discuss the limitations of their approaches, including the potential need for specific configurations in MATLAB and the challenges of ensuring integer outputs from a continuous function.