Plotting my own data in a matlab figure.

1 view (last 30 days)
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

Accepted Answer

Stephen
Stephen on 22 May 2012
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?

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!