Plot multiple x axes on the bottom of a graph
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have three unique n x 2 matricies (ex. A, B, and C). The values in the first column have common units and the same range, but the range of values in the second are different for each matrix. I want to plot the independent variable (n) on the y-axis and the dependent variables on the x-axis. However, the dependent variables range in values that are incompatible to one another and thus they need their own x-axis. Further, I want to put all x-axes on bottom of the graph. An example from the web of what I'm trying to do is posted below. I will also need to add axes labels, which is not shown in the example picture. Is anyone aware of how to do this? I'm using R2020b. Has anyone been able to do this prior or know of a way to do this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1114195/image.jpeg)
0 Kommentare
Antworten (1)
Bjorn Gustavsson
am 2 Sep. 2022
You should have some good use of a couple of such tools from the file exchange:
The last two seems to only give you multiple y-axes - but they might be straightforward to modify, the first seems to be exactly what you ask for.
HTH
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!