小弟刚刚开始学习matlab语言,是6.5.1,可是,为什么在教材上说可以应用的函数,我就没法运行呢?比如说:
f=sym('3*x^3+4*x^2+x')运行完了,结果:
error_msg : maple: directory does not exist
??? Maple initialization failed.
Error in ==> E:\gdb\软件\Matlab\toolbox\symbolic\maplemex.dll
Error in ==> E:\gdb\软件\Matlab\toolbox\symbolic\mapleinit.m
On line 47 ==> maplemex(maplelib,0);
Error in ==> E:\gdb\软件\Matlab\toolbox\symbolic\maplemex.dll
Error in ==> E:\gdb\软件\Matlab\toolbox\symbolic\maple.m
On line 101 ==> [result,status] = maplemex(statement);
Error in ==> E:\gdb\软件\Matlab\toolbox\symbolic\@sym\sym.m (char2sym)
On line 385 ==> [S,err] = maple(x);
Error in ==> E:\gdb\软件\Matlab\toolbox\symbolic\@sym\sym.m
On line 91 ==> S = char2sym(x);
有强人可以为我分析一下吗?拜托了!
然后还有:
>> f='3*x^3+4*x^2+x'
f =
3*x^3+4*x^2+x
>> roots(f)
会得到这样的结果:
ans =
-0.9926 + 0.3246i
-0.9926 - 0.3246i
-0.7214 + 0.6977i
-0.7214 - 0.6977i
-0.1542 + 1.2574i
-0.1542 - 1.2574i
0.0730 + 1.2874i
0.0730 - 1.2874i
0.8996 + 0.4498i
0.8996 - 0.4498i
0.4840 + 0.7478i
0.4840 - 0.7478i
为什么呢?