Plot a function of a differentiation in Matlab
Afficher commentaires plus anciens
I want to Im = C * (dv/dt) + (V - E)/R, where C, V, E and R are constant. What would be the best way to plot this function of Im. I want to see Im in the y-axis and T in X axis. Do I integrate int(Im)? But how do I plot the function?
I am sort of lost in how to find a matlab function or how I would write a code to illustrate this, can someone provide me some hints? I was told to use Euler loop to perform this.
Thanks.
4 commentaires
Azzi Abdelmalek
le 16 Sep 2012
what is the expression of v ?
Robert
le 16 Sep 2012
Azzi Abdelmalek
le 16 Sep 2012
Modifié(e) : Azzi Abdelmalek
le 16 Sep 2012
v or V , if they are the same correct your code, v and V are differents variables
Walter Roberson
le 1 Oct 2012
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
Réponses (1)
Azzi Abdelmalek
le 16 Sep 2012
Modifié(e) : Azzi Abdelmalek
le 16 Sep 2012
v=-1.5:0.5:1.5
t=linspace(0,10,length(v))
Im = C * diff(v)./diff(t) + (v - E)/R,
2 commentaires
Robert
le 16 Sep 2012
Azzi Abdelmalek
le 16 Sep 2012
Modifié(e) : Azzi Abdelmalek
le 16 Sep 2012
v=-1.5:0.5:1.5
t=linspace(0,10,length(v))
Im = C * diff(v)./diff(t) + (v - E)/R,
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!