Plotting Vertical Lines With All Stars
3 views (last 30 days)
Show older comments
Mark Tenorio
on 29 Mar 2018
Answered: Mark Tenorio
on 29 Mar 2018
I am trying to make vertical lines between two curves that look like the attached (plotter.png).
The line of code that I have currently is:
plot([XarrayOne(i) XarrayOne(i)],[newY1(i) newY2(i)] ,'*m');
This code produces only two stars-one on the bottom curve and one on the top curve. See attached plotter2 for clarification. This line of code is inside a for loop.
The hint that was given is to use a colon operator. However, I tried putting them in between newY1 and newY2 and it errors.
I was wondering if anyone could help me.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Annotations 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!