Abood x
Newbie level 3
- Joined
- Nov 3, 2013
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 18
how to have m file for this function so that whenever i change the interval of the integration it gives me Vrms value for it ?
>> syms t
>> syms T
>> syms Vm
>> syms R
>> f1=int((sin(((2*pi)/T)*t))^2,T/3,T/2)+int((sin(((2*pi)/T)*t))^2,5*T/6,T)
>> Vrms=sqrt(((Vm.^2)/T)*f1)
P=(Vrms.^2)/R
....... so my question how to have a m file for this function such that whenever i change the interval of the integration it gives the Vrms and power for it ?
>> syms t
>> syms T
>> syms Vm
>> syms R
>> f1=int((sin(((2*pi)/T)*t))^2,T/3,T/2)+int((sin(((2*pi)/T)*t))^2,5*T/6,T)
>> Vrms=sqrt(((Vm.^2)/T)*f1)
P=(Vrms.^2)/R
....... so my question how to have a m file for this function such that whenever i change the interval of the integration it gives the Vrms and power for it ?