clcclear allPc=620*10^6Pa=62*10^9Ps=1*10^9r=10d0=0.4d=[10 20 30 40 50 60 70 80 90 100]s=(d./r)k1=1k2=(s+2)./4k3=s./4s1=sw1=4.3 E0=8.85*10^-12Eb=6.830890.*(w1.^(3/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)l1= 0.5.*E0.*l.^2.*10^18n1=(4.*Pa)./((1+(s)).^4)y1=min(l1,Pa)y2=min(y1,n1) if s1<2 e1=k1elseif s1>=2 e1=k2else s1>2 e1=k3end
MATLAB: Why “if loop” contents not getting computed
problem with "if loop"
Best Answer