Plotting my own data in a matlab figure.

조회 수: 5 (최근 30일)
Guillermo Lopez
Guillermo Lopez 2012년 5월 22일
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

채택된 답변

Stephen
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개)

카테고리

Help CenterFile 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!

Translated by