C

Asked • 06/02/19

Matlab simulink Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler?

I have a model in matlab simulink. I have installed matlab in D drive. When I run my model I get the following error: Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler. This is not a syntax or semantics. How can I solve this? Thanks

1 Expert Answer

By:

Nicholas S. answered • 05/10/21

Tutor
4.5 (4)

Calculus, Statistics, Math and Science Tutor with PHD in Engineering

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.