is it possible to draw separate polygons with one fill() function?

1 view (last 30 days)
Is it possible to plot non overlapping polygons with one fill() command?

Answers (1)

Sean de Wolski
Sean de Wolski on 28 Sep 2015
>> fill(rand(1,3),rand(1,3),'r',rand(1,3)+1, rand(1,3)+1,'c')
And doc fill shows the syntax
  1 Comment
Mr M.
Mr M. on 30 Sep 2015
Edited: Mr M. on 30 Sep 2015
and it is possible to do it in general, I mean for n arbitrary data vector, which is given by a data structure, for example cell array of vectors or anything else?

Sign in to comment.

Categories

Find more on Elementary Polygons in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!