I'm working on a problem in matlab dealing with rms.
Part a says:
a voltage is given by v(t)=Vcos(w*t) show that vrms = v/sqrt(2) and is independent of w. Note: T = 2pi/w
part b says:
a voltage is given by 2.5(350t)+3V. determine vrms
This is the code I have so far:
syms T v w t V
%part a
vrms=((1/T)*int(v^2,0,T))^(1/2)
vrms2=subs(vrms,T,(2*pi)/w)
vrms3=solve(vrms2-(V/2^(1/2)))
subs(vrms3,v,V*cos(w*t))
%Since there is no w in the answer, the function doesn't depend on w
%part b
vrmsb=subs(vrms2,v,2.5*cos(350*t)+3*V)
is this right? how can i finish it? what needs to change?
I'm slightly lost on if I'm doing this right or not.
|
|
0
|
|
|
|
Reply
|
b.alaniz328 (1)
|
11/22/2010 1:29:03 PM |
|