使用Octave \ Matlab绘制并填充由n条线围成的区域 [英] Plot and fill area enclosed by n lines using Octave\Matlab

查看:190
本文介绍了使用Octave \ Matlab绘制并填充由n条线围成的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们假设我有n条曲线,它们一起围成一个区域.如何使用Octave/Matlab绘制曲线并填充它们所包围的区域?以下是3条曲线的示例(封闭区域为黑色):

Lets suppose I have n curves, which together enclose some region. How to plot the curves and fill in the region they enclose using Octave/Matlab? Below is example for 3 curves (enclosed area is in black):

推荐答案

您可以使用函数fill.

请参阅此处的matlab文档:

See the matlab documentation there:

http://www.mathworks.fr/help/techdoc/ref/fill.html

这篇关于使用Octave \ Matlab绘制并填充由n条线围成的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆