How do I display non-overlapping lines in one single MATLAB plot?
古いコメントを表示
I want to create a single plot showing non-overlapping lines, like the graph I have pasted here. When I try plotting the data with 'hold on', all the lines overlap. How can this be prevented?

3 件のコメント
José-Luis
2014 年 9 月 23 日
Please show what you actually get.
Eric
2014 年 9 月 23 日
dpb
2014 年 9 月 23 日
The first plot has a set of data that don't overlap at a give point on the x axis, to create a plot of that sort in Matlab just introduce a NaN in the vector of x,y data at the breakpoints.
The data that created the plot you show later doesn't have the same characteristics at all...don't know what you would expect it to look like instead.
Oh, unless the data were reversed and the four distinct x-values are supposed to be the sections of data. If that is the case, you should have columns of 8 values for either the four x values or, as noted above, splice them together w/ a NaN in between.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Visualization and Interpretability についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

