Plot - Closing the gaps between different curves

1 次查看(过去 30 天)
Hello,
By matlab I would like to evaluate various experimental data.
The results are available in different areas (0-5kHz, 5-10kHz ...). I have shown this over the succession of the plot command (plot(x1,y1, x2,y2...)).
Disturbing I find the devoted "gaps" between the individual measuring ranges.
Is there an easy way to connect them?
Many Thanks!
Picture1.png

回答(1 个)

KSSV
KSSV 2019-4-30
Read about fillmissing, interp1.
  2 个评论
Mepe
Mepe 2019-4-30
Thanks for the answer.
The problem here is that I have closed data sets (without NaN). I want to connect the transition of the data X1, Y1 with X2, Y2.
KSSV
KSSV 2019-4-30
X = [X1 ; X2] ; % I am assuming X1,X2 as column vectors
Y = [Y1 ; Y2] ; % I am assuming Y1,Y2 as column vectors
plot(X,Y)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by