matlab用Fn(u)函数时会出错,不是函数问题,错误如下,求大神指点

在同学电脑上都可以,但是我电脑就是无法运行函数,这是怎么回事啊。。。。要哭了Applications/MATLAB_R2013a.app/bin/mex-c-O-DMAT... 在同学电脑上都可以,但是我电脑就是无法运行函数,这是怎么回事啊。。。。要哭了

Applications/MATLAB_R2013a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2013a.app/stateflow/c/mex/include -I/Applications/MATLAB_R2013a.app/stateflow/c/debugger/include turbine_sfun.c
xcrun: error: SDK "macosx10.7" cannot be located
clang: warning: no such sysroot directory: '-mmacosx-version-min=10.7'
In file included from turbine_sfun.c:3:
In file included from ./turbine_sfun.h:6:
In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:33:
In file included from /Applications/MATLAB_R2013a.app/simulink/include/mwmathutil.h:23:
/Applications/MATLAB_R2013a.app/extern/include/tmwtypes.h:819:9: error:

unknown type name 'char16_t'
typedef char16_t CHAR16_T;

^
In file included from turbine_sfun.c:3:
In file included from ./turbine_sfun.h:6:
In file included from /Applications/MATLAB_R2013a.app/stateflow/c/mex/include/sfc_sf.h:34:
/Applications/MATLAB_R2013a.app/simulink/include/simstruc.h:148:10: fatal error:

'string.h' file not found
#include <string.h>

^
2 errors generated.

mex: compile of ' "turbine_sfun.c"' failed.
展开
 我来答
匿名用户
2014-05-10
展开全部
是不是因为你们两个人操作系统不同或者matlab软件版本不同的问题
匿名用户
2014-05-10
展开全部
程序设计不同叭
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式