clear all;
clc;
syms x y a1;
s1=y==-1.7703;
z2=y==-2.741*x+134.673;
a1=solve(s1,z2)
a1.x,a1.y
eq1=tand(a1)==-2.741;
solve(eq1)
Undefined function 'tand' for input arguments of type 'struct'.
Error in Untitled4 (line 8)
eq1=tand(a1)==-2.741;
请大神解答.谢谢
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632
clear all;
clc;
syms x y a1;
s1=y==-1.7703;
z2=y==-2.741*x+134.673;
a2=solve(s1,z2) % 这里要避免a1被覆盖,将返回值a1改为a2
a2.x,a2.y
eq1=tand(a1)==-2.741;
solve(eq1)
要避免a1被覆盖,将返回值a1改为a2,结果
ans =
375052487205322757/7534403429335040
ans =
-17703/10000
ans =
-(180*atan(2741/1000))/pi