How do I plot differing length (X,Y) vectors vs time?
조회 수: 13 (최근 30일)
이전 댓글 표시
At each point in time I receive a list of (x,y) pairs and the number of data points ((x,y) pairs) varies with time. I want to do a scatter plot-style figure of the x,y pairs versus time. If it helps, the x,y pairs are integers over a finite range of possible values (range(x) is not = range(y)).
댓글 수: 0
채택된 답변
Star Strider
2016년 9월 14일
You probably have triplets (t,x,y). Use the scatter3 or plot3 functions. If you want to plot more than one (t,x,y) series on each plot, use the hold function.
댓글 수: 4
Star Strider
2016년 9월 15일
As always, my pleasure.
I’m interested! I’d like to see your code and the plot it produced.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!