Plot regression with time

조회 수: 1 (최근 30일)
Arman
Arman 2012년 7월 1일
Dear all,
Sorry for the novice question, I have a dependent variable (y) and an independent variable (x). Just to show how these two variables relate to each other I can use plotregression function, however each observation belongs to a different time point and i need to have time factor in my plot to show how the change of these two variables could be related to time. Which plot would you recommend in MATLAB? I would prefer the most visually appealing as my aim is to present my data.
Thanks in advance

채택된 답변

Image Analyst
Image Analyst 2012년 7월 1일
A common way to show 2D data is via images. You could have time along one axis, your independent variable x along the other axis, and your dependent variable y as the image intensity. If you don't have all x for all t, then you could fill out the 2D matrix for the missing x,time pairs with TriScatteredInterp(). If the image is nice and smooth, then you might also look to display it with surf() instead of imshow() or image().
  댓글 수: 5
Image Analyst
Image Analyst 2012년 7월 1일
Can you just stitch together the 5 images side by side? Or else make a movie (animated gif) where it plays the different time point images over and over?
Arman
Arman 2012년 7월 1일
Probably the first option as it is going to be presented on paper.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by