How to create a second x-axis on top of 2d plot, where I'm plotting units in nm on the x-axis. I want to calculate the corresponding electron-volt value, and display this value on the x-axis on top of the plot. How can I do this?
1 回表示 (過去 30 日間)
古いコメントを表示
Dears,
I have a question regarding plotting command, could you please help me with that.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155493/image.jpeg)
Thank you very much.
Kind regards, Mohammed A. Jameel
3 件のコメント
Image Analyst
2016 年 8 月 6 日
I presume all the curves lie in the same Y range of 0 to 200. So what does "same different Y-axis" mean? Please put numbers on the top and bottom x axis so we can see if they have the same range, or a different range. Do you want numbers on the top and on the bottom? Please give some short sample data.
回答 (1 件)
Konark Kelaiya
2016 年 8 月 6 日
編集済み: Konark Kelaiya
2016 年 8 月 6 日
Well plotxx or plotyy will do the plot that you want. Rest about equal values for both axis it is possible if both axis have same [min max] value for axis i.e [-5 5] otherwise you have to take the handle of second X-Axis and set Limit equal to Min and Max of 1st Axis
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!