Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to create m file Vrms function using matlab ?

Status
Not open for further replies.

Abood x

Newbie level 3
Newbie level 3
Joined
Nov 3, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
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 ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top