MATLAB Answers

Plot - Closing the gaps between different curves

1 view (last 30 days)
Mepe
Mepe on 30 Apr 2019
Commented: KSSV on 30 Apr 2019
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

Answers (1)

KSSV
KSSV on 30 Apr 2019
Read about fillmissing, interp1.
  2 Comments
KSSV
KSSV on 30 Apr 2019
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)

Sign in to comment.

Tags

Products

Community Treasure Hunt

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

Start Hunting!