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

采纳的回答

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 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by