How to plot section of a vector with a condition
2 views (last 30 days)
Show older comments
Amit Pandey on 2 Mar 2016
Commented: Amit Pandey on 3 Mar 2016
i am struggling with something. let me explain what exactly i need to plot. Suppose i have 4 vectors i.e Time, speed, torque, and power. say length of each vector is 15000x1. i want to plot time(x) vs speed(y),time(x) vs torque(y),time(x) vs Power(y). In all the three plots i don't want to shows points where power is less than a certain value. say power varies from 0 to 300. then in all the plots i don't want to show sections of plot whenever power is less than 225.
Thank you. -Amit
Mike Garrity on 2 Mar 2016
I'm not clear on whether you want to connect across the skipped points, or leave them out. Here's an example that illustrates both:
More Answers (0)
Find more on Subplots 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!