Plot a function of a differentiation in Matlab

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

what is the expression of v ?
Robert
Robert 2012년 9월 16일
Sorry, V is not a constant. V = IR where I is -1.5:0.5:1.5
Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 16일
편집: Azzi Abdelmalek 2012년 9월 16일
v or V , if they are the same correct your code, v and V are differents variables
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 16일
편집: Azzi Abdelmalek 2012년 9월 16일

0 개 추천

v=-1.5:0.5:1.5
t=linspace(0,10,length(v))
Im = C * diff(v)./diff(t) + (v - E)/R,

댓글 수: 2

Robert
Robert 2012년 9월 16일
How about in respect of t, where will that go?
v=-1.5:0.5:1.5
t=linspace(0,10,length(v))
Im = C * diff(v)./diff(t) + (v - E)/R,

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

2012년 9월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by