HOW TO PLOT SINGLE GRAPH OF TWO EQUATION WHICH IS CONDITIONALLY SATISFIED
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vds=0:0.00001:.3; Vt=0.4; Vgs=0.6; Mn=398*10^-4; Cox=9.99*10^-10; p=2; k=Mn*Cox*p; Id1=k/2*(Vgs-Vt)^2; Id=k/2*(2*(Vgs-Vt).*Vds-Vds.^2); if Vds<Vgs-Vt Id;
else Id1; end plot(Vds,Id)
0 Kommentare
Antworten (2)
Damien
am 4 Okt. 2016
Hello,
Just define a variable which contains your result
if Vds<Vgs-Vt
Result=Id;
else
Result=Id1;
end
plot(Vds,Result)
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!