Why does it gives matrix dimension must agree?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ANWESHA
am 27 Mai 2014
Bearbeitet: Mischa Kim
am 27 Mai 2014
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);
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 27 Mai 2014
Bearbeitet: Mischa Kim
am 27 Mai 2014
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);
0 Kommentare
Weitere Antworten (1)
rifat
am 27 Mai 2014
You are not dividing element by element. Use the following lines instead:
R=3e-7:1e-7:10e-7;
V=0.5;
Vth=0.011*V+(1.3e-5*V./R.^2);
plot(R,Vth);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!