MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 我的Matlab坏了???!!! (https://www.labfans.com/bbs/showthread.php?t=12789)

legolasleaf 2011-02-19 13:51

我的Matlab坏了???!!!
 
大家好,我是matlab超级新手。但最近所有的课都要用,逼上梁山了!
一个非常基础的问题,我用inline定义函数为什么一直提示错误?
比如说,
f= inline(' 2*x') ;
f(2)
马上显示Error:
??? Attempt to execute SCRIPT inlineeval as a function:
> C:\Program Files\MATLAB\R2010b\toolbox\matlab\funfun\inlineeval.m
>
> Error in ==> inline.subsref at 27
> INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr,
> INLINE_OBJ_.expr);
更神的事,我发邮件问老师,他说他那边运行完全是正常的。我现在急用啊!!!谢谢大家!

beginer 2011-02-19 17:27

回复: 我的Matlab坏了???!!!
 
我这里也可以啊,并且我的版本比你的低,R2009a
>> f= inline(' 2*x') ;
>> f(2)

ans =

4

shiqiang 2011-02-23 19:52

回复: 我的Matlab坏了???!!!
 
你看看是不是你再输入符号时,输入法不对啊。


所有时间均为北京时间。现在的时间是 12:53

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.