MATLAB: FillPattern of a Rectangle

fillpatternrectangle

I found a function for drawing a rectangle and filling with DiagonalLines. Below is the function:
plot::Rectangle(xmin .. xmax, ymin .. ymax, <a = amin .. amax>, options)
However, the problem is when I write this function I receive the error message:
Invalid use of operator.
Even I tried the example of Matlab but again I got the same eror message.

Best Answer

Unfortunately for you, there is no such function in matlab. You may search the FileExchange to see if somebody has implemented something like that, otherwise I'm afraid you'll have to draw the diagonal lines yourself with a bunch of line calls in addition to the rectangle call.
Related Question