Why do I receive unexpected results and/or a segmentation violation when linearizing a model that contains Embedded MATLAB Function blocks using Simulink Control Design 1.2 (R14SP2)? I have a Simulink model which contains an Embedded MATLAB Function block. The first inport of this block has a width greater than one (vector or matrix input). When I linearize this model by using the Linear Analysis GUI ("Tools -> Linear Analysis"), I receive unexpected results. I receive different results if I add intermediate outports on some of the signals. I also experience frequent segmentation violations and/or crashes when linearizing the model or modifying the inports and outports used for linearization. The stack trace of the segmentation violation is as follows:
Kshitij Singh answered .
2025-11-20