I need to create an array of trapezoids in a single line. I am new to matlab. Can anyone help me out?
Show older comments
I need to create an array of trapezoids in a single line. I am new to matlab. Can anyone help me out?
1 Comment
Chandan Bhuran
on 28 May 2015
Answers (1)
Cindy Solomon
on 22 May 2015
Hi Chandon,
Could you clarify what you mean by a single line? (For example, do you just mean shapes that are adjacent to each other?) For drawing filled polygons of any shape, fill or patch are probably your best options. With "fill" in particular, you can specify a range of 2D filled areas by giving it additional input arguments, such as:
fill(X1, Y1, C1, X2, Y2, C2, ...)
Hope this helps!
Categories
Find more on Logical 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!