The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 5th, 2024, 8:18am
Pages: 1
Send Topic Print
Plot I-V Curve by Using Matlab (Read 6500 times)
qiushidaren
Community Member
***
Offline

I am a lovely
MOSFET!

Posts: 86
Chengdu
Plot I-V Curve by Using Matlab
Nov 19th, 2006, 7:40pm
 
Hi all, I want to plot an i-v curve of this equation i=100*[1.3-v+500*(5-i)]^2 by using Matlab, but unfortunately it looks that the plot I get isn’t the one that I want, so I think there must be something wrong but I don’t know it. Your suggestions and comments will be highly appreciated!
Here is my code:
Quote:
%current versus voltage curve
v=0:0.1:3;
i=100*[1.3-v+500*(5-i)].^2;
plot(v,i)
title('current versus voltage of 2.6(c)')
xlabel('Voltage(V)')
ylabel('Current(uA)')
grid


Back to top
 
 
View Profile WWW   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Plot I-V Curve by Using Matlab
Reply #1 - Nov 20th, 2006, 4:30am
 
qiushidaren wrote on Nov 19th, 2006, 7:40pm:
i=100*[1.3-v+500*(5-i)]^2


That's an implicit equation, because "i" appears on both sides.  I expect you need to solve the quadratic equation so you get an explicit equation, i = function only of v and constants.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
qiushidaren
Community Member
***
Offline

I am a lovely
MOSFET!

Posts: 86
Chengdu
Re: Plot I-V Curve by Using Matlab
Reply #2 - Nov 20th, 2006, 4:40am
 
Geoffrey_Coram wrote on Nov 20th, 2006, 4:30am:
qiushidaren wrote on Nov 19th, 2006, 7:40pm:
i=100*[1.3-v+500*(5-i)]^2


That's an implicit equation, because "i" appears on both sides.  I expect you need to solve the quadratic equation so you get an explicit equation, i = function only of v and constants.

Yes, it is an implicit equation, you know sometimes we can't get an explicit equation, or we don't need to solve it to be an explicit one, so I want to know how can I get the correct plot of this kind of implicit equation, thank you in advance!
Back to top
 
 
View Profile WWW   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Plot I-V Curve by Using Matlab
Reply #3 - Nov 20th, 2006, 7:42am
 
Top result from a Google search "matlab implicit plot":

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=300&obj...
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
mg777
Senior Member
****
Offline



Posts: 131

Re: Plot I-V Curve by Using Matlab
Reply #4 - Jan 15th, 2007, 12:20pm
 

Besides you're lucky to have a simple quadratic equation. Solve it by hand!


M.G.Rajan
www.eecalc.com



Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.