用Mathematica绘制流量图(StreamPlot)
1、绘制{y,-x}场里面的流线。StreamPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}]这个图看起来就像是一组同心圆。

3、每一圈用一个箭头:StreamPlot[{y, -x}, {x, -3, 3}, {y, -3, 3}, StreamScale -> Full]

5、用Cos[x y]作为着色方案:StreamDensityPlot[{{y, -x娅势毁歹}, Cos[x y]}, {x, -3, 3}, {y, -3, 3},MaxRecursion -> 2, ColorFunction -> Hue, StreamStyle -> White]
6、StreamPlot的本质,可以通过下面的方法,进行查看:a = StreamPlot[{{x, y}, {y, -x}}, {x, -3, 3}, {y, -3, 3}]a[[1]]

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:67
阅读量:94
阅读量:25
阅读量:40
阅读量:43