The graph is connected with hold, but the graph is cut off.

3 views (last 30 days)
It connects two graphs. However, the part connecting the two graphs is broken. I do not know why.
(Figure 1 is an enlarged view of the two graphs in Figure 2.)
Figure 2
Figure 1
please solve. Thank you
  2 Comments
DGM
DGM on 27 Dec 2021
Without knowing how the plots were created, all I can assume is that this discontinuity represents a mismatch in the endpoint values of the two data series. You might start by checking to see if the ending/starting values match. If this discontinuity occurs in the middle of one of the series, then there's probably a NaN somewhere.
You can always attach the graphing code and sample data if you want someone to take a look at it.
채원 이
채원 이 on 29 Dec 2021
There was a difference in the endpoint values ​​of the two data. Fortunately, I found it and fixed it. Thank you for your reply.

Sign in to comment.

Answers (0)

Categories

Find more on Line 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!