Please how to solve this task
2 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/664005/image.jpeg)
0 Comments
Answers (1)
VM Sreeram
on 7 Jul 2023
Edited: VM Sreeram
on 7 Jul 2023
The issue here is because the plot generated has 8 points, not 7. You're plotting one time using line 5 and seven times using line 12 (enclosed in the for loop).
To fix this, you have to remove the block of code in lines 4-7.
0 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!