Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2010-08-30
年龄: 38
帖子: 2
声望力: 0 ![]() |
![]()
x>d, y=h;
abs(x)<=d, y=h/(d*x); x<-d,y=-h; d, h为符号变量; 我写了下面的代码 但是不对: >> syms d h positive >> syms x real >> if x>d,y=h; >> elseif abs(x)<=d,y=h/(d*x); >>else y=-h; >>end ??? Function 'gt' is not defined for values of class 'sym'. 请大家多多指点,谢谢~ |
![]() |
![]() |