Matlab 一张图中包含多种图类型

发布于 2024-08-29 05:58:22 字数 352 浏览 4 评论 0原文

我的任务是在
之间绘制静电场 两个电极(给定尺寸和形状),
我现在所拥有的是用面积图绘制电极 (area(elect_x,elect_y))
该图看起来像这样:

------------------.---
                  |..
     .---.        |..
     |...|        |..
.----....|        |..
|........|        |..
----------------------

现在我需要在这可能是一个网格中绘制,显示该字段。
有什么办法可以做到吗,还是我的方法不对?
非常感谢每一位指导

I have a task to draw electrostatic field between
two electrodes( at given sizes and shape ),
what i have now is that i draw the electrodes with area plot (area(elect_x,elect_y))
the graph looks like this:

------------------.---
                  |..
     .---.        |..
     |...|        |..
.----....|        |..
|........|        |..
----------------------

and now i would need to draw inside this probably a mesh, showing the field.
Is there any way to do it, or i´m on a wrong way?
Thank you very much for every guide

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏爱你一生 2024-09-05 05:58:22

首先,如果您想在同一坐标区中叠加多个绘图,请

hold on

在绘制第二个图形之前键入(或将坐标区的 'NextPlot' 属性设置为 'add' ),这样绘制第二个图时第一个图不会被删除。

要显示电场,您可能需要查看 quiver ,这样您就可以直观地看到场的方向和强度。另请查看 演示颤抖 了解并了解如何用颜色显示场强。

First, if you want to overlay multiple plots in the same axes, type

hold on

before you plot the second graph (or set the 'NextPlot' property of the axes to 'add'), so that the first plot is not erased when the second one is drawn.

To show electrical field, you may want to have a look at quiver, so you can visualize both direction and strength of the fiels. Also check out is demo of quiver to get and idea how you could show field strength with colors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文