作业帮 > 综合 > 作业

simulink中matlab fcn出错

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/05/27 20:59:00
simulink中matlab fcn出错

函数定义:function y =myfun(u)
%#codegen
y = u*u';
报错:The current directory is f:\program files\matlab\r2011b\bin,which is reserved for MATLAB files.
 
Please change your current directory to a writable directory preferably outside of MATLAB installation area.
simulink中matlab fcn出错
把工作空间设置到另外一个地方,不要设置为f:\program files\matlab\r2011b\bin,