Code covered by the BSD License  

Highlights from
fillout

4.5

4.5 | 2 ratings Rate this file 7 Downloads (last 30 days) File Size: 2.28 KB File ID: #10515
image thumbnail

fillout

by M MA

 

23 Mar 2006 (Updated 24 Mar 2006)

Fill outside a 2-D polygon

| Watch this File

File Information
Description

While Matlab FILL, fills inside a polygon, FILLOUT fills outside a boundary. The boundary can be a continuous line, defined by the vectors X,Y or a region defined by the 2-D arrays X,Y.

Syntax:
  H = FILLOUT(X,Y,LIM,VARARGIN)

Inputs:
  X, Y Boundary vectors (continuous) or 2-D arrays.
  LIM Outer limite box, like AXIS, ie, [minX maxX minY maxY], by default the limits of the data is used
  VARARGIN Any options of the FILL command. By default the fill color FaceColor) is green and the EdgeColor is none

The screenshot shows the example on the help

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
25 Mar 2006 John D'Errico

A nice idea. Good help. It works as claimed. The only (minor) thing I'd change?

If nargout is 0, then do not return the handle variable h. That is, if the user does not wish to get the handle, then don't return it. All this takes is an extra 3 lines at the end:

if nargout==0
  clear h
end

19 Sep 2007 Just Stuff

Thanks. Works great.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized M MA 22 Oct 2008 08:20:21
plotting M MA 22 Oct 2008 08:20:21
fill M MA 22 Oct 2008 08:20:21
boundary M MA 22 Oct 2008 08:20:21
2d M MA 22 Oct 2008 08:20:21
polygon M MA 22 Oct 2008 08:20:21
graphics M MA 22 Oct 2008 08:20:21

Contact us at files@mathworks.com