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.

integrator block from simulink to matlab

Status
Not open for further replies.

Xavipersonal

Junior Member level 1
Joined
Nov 14, 2009
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,389
Hi everybody,

I am implementing a duffing oscillator. Actually, I have done it in Simulink and I am trying to model it in Matlab but I dont know how to implement the integrator?

This is the way I have tried: integral(j)=ts*input(j)+integral(j-1); using a for loop. But results are pretty far from the ones I got with Simulink.

Thanks in advance
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top