Discussion Overview
The discussion revolves around an error encountered in Matlab when attempting to plot a sine function. Participants explore the cause of the error related to the color and line type argument in the plot command, examining the implications of character encoding and formatting in code snippets.
Discussion Character
- Technical explanation
- Debate/contested
Main Points Raised
- One participant reports an error message when using 'k−' in the plot command, seeking clarification on the issue.
- Another participant suggests checking the Matlab plot command documentation for examples of valid arguments.
- Several participants propose that the error lies in the use of 'k−', with some suggesting it should be '-k', which resolves the issue for them.
- There is a discussion about whether the order of symbols matters, with some participants noting that the documentation states it does not.
- One participant asserts that the problem is due to a non-standard dash character being used instead of a regular minus sign, which causes the error.
- Another participant shares their experience with character encoding issues when copying code from other sources.
Areas of Agreement / Disagreement
Participants generally agree that the error is related to the character used in the plot command, but there is some disagreement about whether it is a bug or a result of character encoding issues. The discussion remains unresolved regarding the implications of the documentation's claims about symbol order.
Contextual Notes
Participants mention different operating systems and versions of Matlab, which may influence their experiences with the error. There is also a reference to the potential pitfalls of copying and pasting code from external sources, highlighting the need for careful text handling.