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?
조회 수: 557 (최근 30일)
이전 댓글 표시
Dears,
I have a question regarding plotting command, could you please help me with that. I want to generate graph same as the graph below;
Thank you very much.
Kind regards, Mohammed A. Jameel
댓글 수: 2
Tasos Giannoulis
2022년 10월 9일
Since R2019b, this is possible with tiledlayout:
https://www.mathworks.com/help/matlab/ref/tiledlayout.html
Akash Chennuri
2023년 2월 23일
With this method, is there a way to ensure that when zooming in on a specific portion of the graph that it zooms both axes? When I apply the tiled layout with multiple x and y-axes, it only zooms on the graph represented by the top and right axes as opposed to both graphs. Any help here would be appreciated.
답변 (1개)
KSSV
2016년 8월 9일
You may refer the below link, it might be helpful: http://in.mathworks.com/help/matlab/creating_plots/graph-with-multiple-x-axes-and-y-axes.html
댓글 수: 1
Akash Chennuri
2023년 2월 23일
With this method, is there a way to ensure that when zooming in on a specific portion of the graph that it zooms both axes? When I apply the tiled layout with multiple x and y-axes, it only zooms on the graph represented by the top and right axes as opposed to both graphs. Any help here would be appreciated.
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!