Error using DGESV in Matlab mex
问题 I'm trying to solve a linear system with DGESV in a mex file. When I have a 2x2 system, the mex file works fine and no errors occurred, but when the system is larger than 2, MATLAB System Error dialog box apperas and says that matlab has encountered an internal problem and needs to be closed. Im using matlab r2016a on 64-bit windows 10 and intel composer XE 2013 The compile line is: mex -lmwlapack *.F The code is as follows: #include "fintrf.h" C Gateway subroutine subroutine mexfunction(nlhs