Pc=620*10^6 Pa=62*10^9 Ps=1*10^9 r=10 d=1:10:1000 s=(d./r)s1=sw1=4.3 E0=8.85*10^-12 Eb=6.830890.*(w1.^(3/2)) A1=d.^2 B1=(d./d0).^(1/3) l=(Eb./B1) m= (2.*Pc./E0).^(1/2)n=(8.*Pa./(E0.*(1+s).^4)).^(1/2)x1=min(m,n)Es=min(x1,l)h=8l1= 0.5.*E0.*l.^2.*10^18n1=(4.*Pa)./((1+(s)).^4)y1=min(l1,Pa)y2=min(y1,n1)if s1<=2 e1=1elseif s1>=2 e1= (s+2)./4elseif s1>2; e1=(d./r)./4endx1=e1;A1=d.^2u=e1.*y2 A2=(A1.*Ps)./u A=(A1+A2) x2=(d+h)Vw=(d.*A1)./(x2.*A) uw=(u.*Vw) plot(d,uw)
MATLAB: Why this program showing error like undefined variable.?..one day before same program was giving results but now it os showing error.please help
undefined variable
Best Answer