Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Numerical Integration in MATLAB/SIMULINK

Status
Not open for further replies.

powersys

Advanced Member level 1
Joined
Nov 29, 2005
Messages
440
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
4,987
matlab simulink numerical integration

I wish to implement Eq(4) in MATLAB/SIMULINK. I model the Ts block using Zero-Order Hold block. The amplitude of the sinewave is 1, frequency is 1, and phase shift is pi/2. The amplitude of the output, as can be seen in the figure below, is 100 times larger than the amplitude of the sinewave. Could someone pls advise which part in the SIMULINK model that causes the 'amplification'? (Hint: Integration of sinewave (shifted by pi/2) will give 'cosine wave').

Pls advise. Thanks.

 

Mr.MEB

Member level 3
Joined
Feb 1, 2007
Messages
54
Helped
6
Reputation
12
Reaction score
2
Trophy points
1,288
Activity points
1,580
What's the frequency of ZOH? Why aren't you dividing X by Ts?
Guess : your sample period is 0.01s
 

    powersys

    points: 2
    Helpful Answer Positive Rating

powersys

Advanced Member level 1
Joined
Nov 29, 2005
Messages
440
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
4,987
Mr.MEB said:
What's the frequency of ZOH? Why aren't you dividing X by Ts?
Guess : your sample period is 0.01s
The sample period of the ZOH is also 0.01s. Attached you will find the SIMULINK model. Would you pls help to correct the model? Thanks.
 

Mr.MEB

Member level 3
Joined
Feb 1, 2007
Messages
54
Helped
6
Reputation
12
Reaction score
2
Trophy points
1,288
Activity points
1,580
Look at the formula and Fig. 5
You forgot to put the gain of Ts. In Simulink it's just a triangle to place beetwen the ZOH and Sum block.
 

powersys

Advanced Member level 1
Joined
Nov 29, 2005
Messages
440
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
4,987
Mr.MEB said:
Look at the formula and Fig. 5
You forgot to put the gain of Ts. In Simulink it's just a triangle to place beetwen the ZOH and Sum block.
Got your point... Really thank you...

Added after 1 hours 15 minutes:

Actually how does the equation (4) work? What's 'k' and 'n'? Thanks.
 

mobile-it

Advanced Member level 1
Joined
Apr 24, 2004
Messages
467
Helped
22
Reputation
44
Reaction score
8
Trophy points
1,298
Activity points
3,352
n is the starting point for the summation (here we start by n equals 0) k is the stop point
 

powersys

Advanced Member level 1
Joined
Nov 29, 2005
Messages
440
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
4,987
mobile-it said:
n is the starting point for the summation (here we start by n equals 0) k is the stop point
Kindly advise how you relate the 'n=0', 'k', etc to the model in Fig 5... Thanks
 

hazem tarek

Newbie level 6
Joined
Mar 6, 2010
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Cairo,Egypt
Activity points
1,347
hey please how can i do that
how can i relate the accumulation step and the stor point in the simulink model !!
thanks in advance
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top