How to plot a second graph instead of color-coding
이전 댓글 표시
Hello everyone,
i just started with my master thesis and i already am in trouble with my capability/understanding of matlab.
The thing is, i have a trajectory on a surface of a planet/moon whatever (a .mat with the time, and the coordinates. Then i have some .mat with time and the measurement at that time.
I am able to plot this as a color coded trajectory (using the measurement and the coordinates) in scatter(). This works awesomely nice.
However my problem is that i need something more sophisticated. I now need to take the trajectory and instead of color-coding it, i am supposed to add the graph (value) of the measurement (which is given for each point) to the trajectory (which is not always a straight line). I will added a little sketch to explain what i want. The red arrow shows what i want to add to my plot and the green shows what i have.
I would be really thankful for any kind of suggestion or help!

채택된 답변
추가 답변 (2개)
Walter Roberson
2012년 12월 27일
1 개 추천
You need to do a rotation (and possibly a translation as well) on your (x,y) data. Possibly the easiest way to do that would be to create the plot line in a hggroup and then do a hgtransform to do the rotation and translation.
댓글 수: 1
카테고리
도움말 센터 및 File 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!