Blog for students taking ECEN5807 Modeling and Control of Power Electronics, ECEE Department, University of Colorado at Boulder, Spring 2013
Wednesday, January 19, 2011
Error during simulation
I keep getting this error while trying to simulate my sync buck simuling file. Cant seem to get around it. Can anyone help me with it?
The error is below.
Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds. Use 'mex -setup' to select a supported compiler.
By default, MATLAB comes with a C compiler. For some reason, your installation is missing the compiler. I think you can download it and install it separately - search through Mathworks support
I think the ITS labs do not have the compiler installed but to install it you need administrator access. I guess you can get around it by not using an embedded subsystem.
I had a similar problem. Your operating system is 64bits. But there is no 64bits C compiler in it. You got to reinstall the compiler: http://www.mathworks.co.uk/support/compilers/R2009b/win64.html
By default, MATLAB comes with a C compiler. For some reason, your installation is missing the compiler. I think you can download it and install it separately - search through Mathworks support
ReplyDeleteI think the ITS labs do not have the compiler installed but to install it you need administrator access. I guess you can get around it by not using an embedded subsystem.
ReplyDeleteI had a similar problem. Your operating system is 64bits. But there is no 64bits C compiler in it. You got to reinstall the compiler:
ReplyDeletehttp://www.mathworks.co.uk/support/compilers/R2009b/win64.html