Plot - Closing the gaps between different curves

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일

0 개 추천

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.
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)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

질문:

2019년 4월 30일

댓글:

2019년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by