Plot multiple x axes on the bottom of a graph

14 visualizaciones (últimos 30 días)
Zachary Towner
Zachary Towner el 1 de Sept. de 2022
Respondida: Bjorn Gustavsson el 2 de Sept. de 2022
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?

Respuestas (1)

Bjorn Gustavsson
Bjorn Gustavsson el 2 de Sept. de 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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by