Plotting 3 axes (y1, X1, X2) using 4 fields in a structure?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
jamie rayment
el 23 de Abr. de 2020
Respondida: Ganesh Regoti
el 27 de Abr. de 2020
I cannot seem to plot 4 field arrays.
Using the arrays embeded in the structure, where the array of each is the same:
field(1).deflection_x
field(1).deflection_y
field(1).time
field(1).height
Creating a figure, field(1).deflection_x, and field(1).deflection_y are on the same scale of +/-1, therefore, only one y-axis is needed with scale +/- 1.
The deflections occur at linked time(n) and a height values (n), so XAxis 1- states time, and XAxis 2-states height.
So far, I can create a figure using 3 sets of arrays using field(1).deflection_x, field(1).deflection_y and field(1).height. This gives two axes, an X-axis (height) and a Y-axis (deflection).
At the moment, everything I have tried to encorporate field(1).time into the figure as a 2nd X-axis (time), does not work.
Any suggestions?
2 comentarios
Respuesta aceptada
Ganesh Regoti
el 27 de Abr. de 2020
Hi,
I assume you want two different plots on a single figure. Here are certain links which you could refer to
Hope this helps!
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Two y-axis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!