How to draw only a part of a known curve?
10 views (last 30 days)
Show older comments
ErikJon Pérez Mardaras on 10 Nov 2020
Commented: ErikJon Pérez Mardaras on 25 Nov 2020
I have made this
The blue plot, is a curve defined like this:
curve=[xco0 xco1 xco2 xco3 xco4 xco5 xco6 xco7 xco8;yco0 yco1 yco2 yco3 yco4 yco5 yco6 yco7 yco8];
Which each x and y components, are its known coordinates. Each one has a lot of values in it.
I also have pointA and pointB, which are points of the curve which coordinates are known:
The issue here is that I would like to draw only the part of the curve that is between those two points, or to colour the curve as white the rest of the curve that is not between pointA and pointB, which is the same thing in fact.
How can I do that?
Fangjun Jiang on 10 Nov 2020
Find more on Surface and Mesh Plots 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!