I'd like to use ezplot to draw a function. This is my code:
ray=0.11;m=3.5;C=2*10^(-12);DS=140;CONST=1/((DS^m)*C*pi^(m/2));syms xF= @(x) CONST*((x.^(-m/2))./((1.6906*(x/ray).^5-4.6813*(x/ray).^4+5.4253*(x/ray).^3-2.8213*(x/ray).^2+0.8716*(x/ray)+0.4251).^m));syms xz=int(F,x,0,0.04);syms xezplot(z,[0,0.04])
I always find an error while I want to plot this function… Why? This is the error :
Error using inlineeval (line 14)Error in inline expression ==> int(2000./(x.^(7./4).*((2179.*x)./275 - (28213.*x.^2)./121 + (5425300.*x.^3)./1331 - (468130000.*x.^4)./14641 +(16906000000.*x.^5)./161051 + 4251./10000).^(7./2)), x, 0, 1./25) Undefined function 'int' for input arguments of type 'double'.Error in inline/feval (line 33) INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);Error in ezplotfeval (line 51) z = feval(f,x(1));Error in ezplot>ezplot1 (line 468) [y, f, loopflag] = ezplotfeval(f, x);Error in ezplot (line 144) [hp, cax] = ezplot1(cax, f{1}, vars, labels, args{:});Error in sym/ezplot (line 76) h = ezplot(fhandle(f),varargin{:});
Best Answer