I need to create a 2d object in shape of a trapezium. Then I need to arrange them in an array. All of them parallel at a same angle with the horizontal.
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 orpatch 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:
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.