How to plot a line with discontinuity
Show older comments
I need to plot a discontinuous line, I saw some of the answers but they dont fit to my problem. I have the following data: >> x= [ 5 15 30 50 80 115]; >> d= [ 0.9901 1.0184 0.8291 2.2491 NaN 0.0738]; and I need the graph to appear as a continuous line for the first 4 elements, then a gap, then the last element. What i get when I do >> plot(x,y) is a line the breaks at the fourth element and that is it
Accepted Answer
More Answers (1)
Allen Denny
on 12 Sep 2020
0 votes
curve fit your data in matlab using curve fitting app in matlab and then plot the function
Categories
Find more on Interpolation 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!