gpt4 book ai didi

c - Matlab simulink 无法找到 Stateflow 和 MATLAB Function 模块所需的 C 编译器。使用 'mex -setup' 选择支持的 C 编译器

转载 作者:行者123 更新时间:2023-11-30 19:16:11 29 4
gpt4 key购买 nike

我在 matlab simulink 中有一个模型。我把matlab安装在D盘了。当我运行模型时,出现以下错误:

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

这不是语法或语义。我该如何解决这个问题?谢谢

最佳答案

正如评论中所建议的,您需要运行 mex -setup 来设置 C 编译器。有关您的 MATLAB 版本支持的 C 编译器的列表(您没有说明是 R2013a 还是 R2013b,以及您运行的操作系统),请参阅 Supported and Compatible Compilers – Release 2013aSupported and Compatible Compilers – Release 2013b在 MathWorks 网站上。

关于c - Matlab simulink 无法找到 Stateflow 和 MATLAB Function 模块所需的 C 编译器。使用 'mex -setup' 选择支持的 C 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30884632/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com