用matlab解含参变量的方程组
x,y是需要输入的变量,运行symsx,y,A,C;x=3;y=3;[A,C]=solve('x*sin(A*pi/180)=y*sin(C*pi/180)','A+C=...
x,y是需要输入的变量,运行
syms x,y,A,C;
x=3;
y=3;
[A,C]=solve('x*sin(A*pi/180)=y*sin(C*pi/180)','A+C=90')
报错是
y =
3
A =
[ empty sym ]
Warning: Explicit solution could not be found.
> In solve at 98
In jisuann at 4
A =
[ empty sym ]
C =
[]
x=3,y=3只是举得一个例子,x,y值需要用户自己输入,
x=input('x=');
=input('y=');
这样还能代入方程么? 展开
syms x,y,A,C;
x=3;
y=3;
[A,C]=solve('x*sin(A*pi/180)=y*sin(C*pi/180)','A+C=90')
报错是
y =
3
A =
[ empty sym ]
Warning: Explicit solution could not be found.
> In solve at 98
In jisuann at 4
A =
[ empty sym ]
C =
[]
x=3,y=3只是举得一个例子,x,y值需要用户自己输入,
x=input('x=');
=input('y=');
这样还能代入方程么? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询