showing error like ??? Error using ==> rdivide Matrix dimensions must agree.
1 view (last 30 days)
Show older comments
w1=4.7; %workfunction of tungsten
E0=6.9; %Breakdown field
l1=25; %length of the elctrode
b1=25; %breadth of electrode
P1=1*10^18;
c=8.84*10^-19;
m1=19.3;
m2=2.65;
h=10;
l2=50;
b2=50;
A1=l1*b1;
A0=l2*b2;
E1=8.85*10^-21;
d=10:100:1000;
B1=(d./d0).^(1/3);
E2=E0.*(1./B1);
V=d.*E2;
U0=0.5.*E1.*E2.^2.*(d0./d).^(2/3);
A2=A1.*U0./P1;
U1= U0.*d.*A1./(d+h).*(A1+A0);
M1=m1.*h.*A1;
M2=m2.*h.*A2;
U2=U1./(M1+M2);
x1=E2.*E1;
X2=E1.*E2./(d+h);
C1=c.*d./((d+h).*(1+A0/A1));
R=d./x1.*A1;
C=c.*d.*A1;
T=R.*C;
P=U2./T;
plot(P,d)
1 Comment
j_solar
on 5 Feb 2014
its difficult to understand your code.
But the problem is that the two vectors or matrices that your are trying to divide with "./" do not have the same size. check on that
Answers (0)
See Also
Categories
Find more on Parametric Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!