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?
578 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Tasos Giannoulis
am 9 Okt. 2022
Since R2019b, this is possible with tiledlayout:
https://www.mathworks.com/help/matlab/ref/tiledlayout.html
Akash Chennuri
am 23 Feb. 2023
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.
Antworten (1)
KSSV
am 9 Aug. 2016
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 Kommentar
Akash Chennuri
am 23 Feb. 2023
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.
Siehe auch
Kategorien
Mehr zu Data Exploration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!