inductance, how to simulate in matlab??

Status
Not open for further replies.

madeza

Member level 4
Joined
Mar 10, 2006
Messages
74
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
Arequipa / PERU
Activity points
1,759
matlab inductance

hi everybody

I'm trying to plot or show the instantaneous power on inductance...
I use a sine voltage v=100cos(wt) and L=50mH
this is the code I've entered in Matlab

t=0:0.00001:0.1;
v=100*cos(377*t);
x=2*pi*60*50E-3;

since PL=VmIm(sin2wt) and Vm=wLIm w=2Πf
I'll try to use the following eq. PL=((V^2)/wL)sin(2wt) to plot but no results...

I mean I want to plot the instantaneous power, the voltage and the current...

Do you have any idea...
thank's in avanced...
 

Dear,
do not think that the eq. posted for the power calculation is correct,
PL = v^2*sin(2*W*T)/WL where v is the Vm of the sin by following code is working, please check it.
t=0:0.00001:0.1;
w = 377;
L = 50E-3;
Vm = 100;
V=Vm*cos(w*t);
PL = Vm.^2.*sin(2*w*t)/(w*L);
plot(t,PL)
hold
plot(t,v)

hope it to be useful
 

    madeza

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…