MATLAB求解参数方程得到含变量的解后怎么代入参数值,syms x y x1 y1 x2 y2 x3 y3 radius;[x,y,radius]=solve('(x-x1)^2+(y-y1)^2=radius^2','(x-x2)^2+(y-y2)^2=radius^2','(x-x3)^2+(y-y3)^2=radius^2')现在已知了x1y1 x2 y2 x3 y3的值,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 14:05:54
MATLAB求解参数方程得到含变量的解后怎么代入参数值,syms x y x1 y1 x2 y2 x3 y3 radius;[x,y,radius]=solve('(x-x1)^2+(y-y1)^2=radius^2','(x-x2)^2+(y-y2)^2=radius^2','(x-x3)^2+(y-y3)^2=radius^2')现在已知了x1y1 x2 y2 x3 y3的值,
MATLAB求解参数方程得到含变量的解后怎么代入参数值,
syms x y x1 y1 x2 y2 x3 y3 radius;
[x,y,radius]=solve('(x-x1)^2+(y-y1)^2=radius^2','(x-x2)^2+(y-y2)^2=radius^2','(x-x3)^2+(y-y3)^2=radius^2')
现在已知了x1y1 x2 y2 x3 y3的值,如x1=0,y1=0,x2=1,y2=0;x3=0;y3=1.
怎么把x1--y3的值代入,编程实现.
MATLAB求解参数方程得到含变量的解后怎么代入参数值,syms x y x1 y1 x2 y2 x3 y3 radius;[x,y,radius]=solve('(x-x1)^2+(y-y1)^2=radius^2','(x-x2)^2+(y-y2)^2=radius^2','(x-x3)^2+(y-y3)^2=radius^2')现在已知了x1y1 x2 y2 x3 y3的值,
syms x y x1 y1 x2 y2 x3 y3 radius;
[x,y,radius]=solve('(x-x1)^2+(y-y1)^2=radius^2','(x-x2)^2+(y-y2)^2=radius^2','(x-x3)^2+(y-y3)^2=radius^2','x','y','radius')
x1=0,y1=0,x2=1,y2=0;x3=0;y3=1.
x=eval(x)
y=eval(y)
radius=eval(radius)
你的函数应该这样写,你上面的求解方法也是有问题的!
祝你学习愉快!