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?

135 ビュー (過去 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
Tasos Giannoulis 2022 年 10 月 9 日
Since R2019b, this is possible with tiledlayout:
https://www.mathworks.com/help/matlab/ref/tiledlayout.html
Akash Chennuri
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
KSSV 2016 年 8 月 9 日
  1 件のコメント
Akash Chennuri
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 ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by