Segmentation violations can occur for a variety of reasons and in many different situations.
This article explains how to avoid segmentation violations, what to do when you see one, and why the error message asks you to contact The MathWorks. This usually happens if the source code either writes past the end of an array or dereferences an uninitialized pointer. In the latter case, the pointer almost invariably points to a memory region owned by another process. Since this is a very general category of programming errors, such errors are difficult to track down. This is because the error message may not be occurring in the part of the code that's causing the error.