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.


3 comments:

  1. 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

    ReplyDelete
  2. 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.

    ReplyDelete
  3. 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

    ReplyDelete

Note: Only a member of this blog may post a comment.