MATLAB: Does it gives matrix dimension must agree

dimensionmatrix

i am trying to plot this equation: x=0.011*V+(1.3e-5*V/R^2)
program:
R=3e-7:1e-7:10e-7;
V=0.5;
Vth=0.011*V+(1.3e-5*V/R.^2);
plot(R,Vth);

Best Answer

Anwesha, use
R = 3e-7:1e-7:10e-7;
V = 0.5;
Vth = 0.011*V + (1.3e-5*V./R.^2); % note the dot in front of / sign
plot(R,Vth);