提示错误Unexpected MATLAB operator?
如题,在运行单纯形搜索法时提示错误,大家帮忙看一下。我始终看不出来f=公式哪里有书写不规范的地方syms n1 n2 k1 k2 d;
f = (15258516061042144529378562855765/2535301200456458802993406410752/(11646594233100091/4503599627370496*cos(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)+7142994605729595/4503599627370496*i*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)/(n1+1/152100*n2-i*k1*exp(1/390*k2))+i*(n1+1/152100*n2-i*k1*exp(1/390*k2))*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d))/conj(11646594233100091/4503599627370496*cos(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)+7142994605729595/4503599627370496*i*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)/(n1+1/152100*n2-i*k1*exp(1/390*k2))+i*(n1+1/152100*n2-i*k1*exp(1/390*k2))*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d))-78403/100000)^2;
X=;
=minSimpSearch(f,X,1.2,0.5,2,0.3,);
上面是f=是方程,X初始点,下面是提示错误,
??? >>f = (15258516061042144529378562855765/2535301200456458802993406410752/(11646594233100091/4503599627370496*cos(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)+7142994605729595/4503599627370496*i*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)/(n1+1/152100*n2-i*k1*exp(1/390*k2))+i*(n1+1/152100*n2-i*k1*exp(1/390*k2))*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d))/conj(11646594233100091/4503599627370496*cos(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)+7142994605729595/4503599627370496*i*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d)/(n1+1/152100*n2-i*k1*exp(1/390*k2))+i*(n1+1/152100*n2-i*k1*exp(1/390*k2))*sin(1/195*pi*(n1+1/152100*n2-i*k1*exp(1/390*k2))*d))-78403/100000)^2;
|
Error: Unexpected MATLAB operator.
[ 本帖最后由 ChaChing 于 2010-8-3 22:59 编辑 ]
回复 楼主 fanyushan 的帖子
直接试了, 没报错? R2009a细看发现两个箭头">>", 该不会LZ用了?:loveliness:
回复 沙发 ChaChing 的帖子
我用的是2008a版,楼上用的是哪版的?回复 板凳 fanyushan 的帖子
不是说了? R2009a, 但LZ的问题与版本无关!:@)LZ有输入">>"吗?
页:
[1]