Plotting my own data in a matlab figure.
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everyone. My question I think is quite straight forward for the experts. I have a matlab figure which consists on three axes. On the right axis I have say z, on the left axis say y, and on the bottom axis I have a common axis named lambda0. So, the figure represents two graphs simultaneously one ofr the z axis with respect to the lambda0 and another graph for the y axis with respect to lambda0. Now; I have my own data which is also related to z and lambda0, and y and lambda0, and I would like to plot it on the same graph as the other two. The problem is that I only have the figure and not the equation hence I don't know if it is possible to plot my own data on that same axis. I have a table of values of z with respect to lambda0 and the same for y, lambda0, but I don't know how to tell matlab which is which. Thanks in advance
댓글 수: 0
채택된 답변
Stephen
2012년 5월 22일
I'm kind of confused here. you have a 3d plot with 2-d data? can you just set the third vector as zeros and use hold to plot it together with whatever your figure is? when you plot things typically the x axis is the first argument, then y, then z. so if x=lambda0, y=y and z=z, you put them in that order to plot. if that doesn't solve your problem, could you try to explain again?
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!