sql server browser:matlab中符号向量不能存在于函数文件中?

来源:百度文库 编辑:高校问答 时间:2024/04/30 03:49:13
我写了一个函数文件test:
function test
syms xx yy zz
f=[xx-sin(zz);yy-cos(zz)];
j=jacobian(f);
运行系统提示
??? Attempt to execute SCRIPT yy as a function.

Error in ==> C:\MATLAB6p5\work\test.m
On line 3 ==> f=[xx-sin(zz);yy-cos(zz)];
怎样解决呢?前提是必须用函数文件不用命令文件。

我运行没有问题啊,不过我用的是Matlab 7.1