Plotting my own data in a matlab figure.

10 ビュー (過去 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 Center および File Exchange2-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