I'm trying to fill the intersecting area between two circles in Matlab.Ordinary script files have the problem that they run in the scope of the command window. Both are plain ASCII files containing Matlab commands, with '.m' file extensions. Matlab function files are very similar to Matlab script files, with a few important differences.