Extra Horizontal Line Across Origin in Figure 10.3 Due to Vector Concatenation in Exercise 10.1 (Pages 343–344)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 86/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- documentation
Research direction
Read Exercise 10.1 on pages 343–344 and locate the Figure 10.3 plotting code in the repository’s MATLAB materials. Check how the vectors are concatenated in the plot call; the issue identifies the unwanted segment along y = 0 and suggests corrected plotting forms. Done when the six subplots show the contour without the horizontal line across the origin.
Written by the indexing model from the issue text.
Description
Dear Professors,
reviewing Exercise 10.1 and Figure 10.3 on pages 343–344, I noticed a small plotting bug in the code that draws an unwanted horizontal blue line along $y = 0$ across all six subplots:
- On page 343 (line 8), concatenating
[x;x]and[y; -y]insideplot([x;x], [ y; -y]);connects the end of the upper branch(x = 2, y = 0)directly to the start of the lower branch(x = -2, y = 0)with a straight segment along the x-axis (visible in blue over the greyyline(0)in every subplot of Figure 10.3 on page 344).
- Using
plot([x; flipud(x)], [y; -flipud(y)]);(or plotting the two branches separately asplot(x, y, x, -y);) closes the contour cleanly without crossing the interior.
thanks, as always, for the time
- Dominant language
- MATLAB
- Stars
- 30
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UniprJRC/DSwithMATLAB
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
UniprJRC/DSwithMATLAB#253 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
UniprJRC/DSwithMATLAB#252 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
UniprJRC/DSwithMATLAB#249 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
UniprJRC/DSwithMATLAB#247 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
UniprJRC/DSwithMATLAB#246 ·
All issues in UniprJRC/DSwithMATLAB
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
MohammadRaziei/ctoon#12 ·
-
easy first-contributor first-contributors good first issue help wanted matlab up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
fork-commit-merge/fork-commit-merge#8766 ·
Maintainers usually reply within 1 day
-
area: math-chaos priority: P1 size: S type: docs
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ibra-kdbra/Math-Problems#309 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
gui-parity
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
sccn/eegprep#871 · 1 comment ·
Maintainers usually reply within 1 day