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.

 채택된 답변

Mark Tenorio
Mark Tenorio 2018년 3월 29일

0 개 추천

Found the solution. Use colon in between both X and Y.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2018년 3월 29일

답변:

2018년 3월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by