How to plot two 3-D figures with different axes in a single plot?

4 次查看(过去 30 天)
Dear sir,
I have 2 sets of parameters (Ez, Bx, By) and (Ex, Ey, Bz) but both having different units.
(Ez, Bx, By) have units of mm.deg^2 [Ez has unit of mm, while Bx and By have units of deg.]
(Ex, Ey, Bz) have units of mm^2.deg [Ex and Ey are in mm while Bz is in deg.]
I want to show both 3-D plots (solid plots) in one figure only. Since, both set of parameters have different units, I am unable to show them in a single plot.
Excel sheet is attached with their respective values.
How to show both of them in one figure?
Kindly help.
Thnaks in advance

回答(1 个)

Walter Roberson
Walter Roberson 2021-12-4
You can use subplot() or tiledlayout() to create two different visually distinct axes that are beside each other horizontally or vertically.
Or, you can create two axes that have the same Position. You would probably want to link the Position properties together for the two axes so that they stayed in the same position.

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by