matlab gui 的.exe里的syms
result(xl,rl);function result(xl,rl)
syms x y
equ=(x-rl/(1+rl)).^2 + y.^2 -(1/(1+rl)^2);
equ1=(x-1).^2+(y-1/xl).^2-(1/xl)^2';
=solve(equ,equ1);
t=x(2,:);m=y(2,:);
plot(double(t),double(m),'r*');
运行警告Warning: Function failed to evaluate on array inputs; vectorizing the function may
speed up its evaluation and avoid the need to loop over array elements.
运行.exe错误???undefined function or method 'syms' for
input arguments of type 'char'
帮帮我吧!!:'( syms x y,你这里定义这个是为了什么?
matlab gui生成的.exe syms有问题,求帮忙呀
不定义syms x y就会说x,y没有定义啦!之前的xl,rl为参数一求出值,在界面里运行没问题的,但是一旦生成.exe就说syms不能输入char,怎办呀?:'(
[ 本帖最后由 ChaChing 于 2009-4-12 10:46 编辑 ]
matlab 符号含参转化问题
xl=0.5;rl=1;=solve('(x-rl/(1+rl))^2 + y^2 -(1/(1+rl)^2)','(x-1)^2+(y-1/xl)^2-(1/xl)^2');
>> t=x(2,:);m=y(2,:);
>> t=double(t)????就有问题啦,我只是想把含参符号转成数值而已!谢谢啦:'( xl,rl楼主输入什麽资料? 没数据没得试!
double只针对symbolic constant or constant expression
help vpa
[ 本帖最后由 ChaChing 于 2009-4-12 10:48 编辑 ]
页:
[1]