Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-10-19
年龄: 44
帖子: 1
声望力: 0 ![]() |
![]()
>> f=@(x)('(60000+4x)./(5200+x)');
>> ezplot(f); ??? In an assignment A(I) = B, the number of elements in B and I must be the same. Error in ==> specgraph\private\ezplotfeval>applyfun at 81 z(i) = feval(f,x(i)); Error in ==> specgraph\private\ezplotfeval at 68 z = applyfun(x); Error in ==> ezplot>ezplot1 at 433 [y,f,loopflag] = ezplotfeval(f,x); Error in ==> ezplot at 140 [hp,cax] = ezplot1(cax,f{1},vars,labels,args{:}); |
![]() |
![]() |
![]() |
#2 |
高级会员
注册日期: 2008-05-31
年龄: 38
帖子: 104
声望力: 19 ![]() |
![]()
呵呵,你定义匿名函数f时错了,应该这样:
f=@(x)((60000+4*x)./(5200+x)); 不用加单引号,4和x间要加乘号 |
![]() |
![]() |