COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

• Email
• Follow

```Hello,

I am VERY new to Simulink, I am trying to model the Mackey-Glass equation.

dx(t)/dt = 0.2 ___x(t - tau)____ - 0.1x(t)      where x(0) = 2.5  and tau=15
1 - x^10 (t- tau)

I know that I must take the derivative of y, integrate to generate x . So everything is delayed tau seconds I think I must use the  transport delay block.

But how do I arrange the blocks so that it all works?  And how do i do x^10 in Simulink?

Blocks I am using: Constant (1)
Step
Integrator
Gain (2 and 0.1)
Transport Delay
Scope
Workspace

Any help is very appreciated.
```
 0

See related articles to this posting

```
"Antonio0878 Manzoni" <antonio040778@gmail.com> wrote in message
news:ibsooo\$6r5\$1@fred.mathworks.com...
> Hello,
>
> I am VERY new to Simulink, I am trying to model the Mackey-Glass equation.
> dx(t)/dt = 0.2 ___x(t - tau)____ - 0.1x(t)      where x(0) = 2.5  and
> tau=15 1 - x^10 (t- tau)
>
> I know that I must take the derivative of y, integrate to generate x . So
> everything is delayed tau seconds I think I must use the  transport delay
> block.
>
> But how do I arrange the blocks so that it all works?  And how do i do

The simplest way I can think of:  draw a line in your model and label it
dx/dt.  Now pass that through an Integrator block and label the output line
with the mathematical expression it represents.  [Hint:  what do you get if
you integrate dx/dt?]  Then use that in conjunction with the other blocks to
build up the right side of your differential equation, which you then feed
back to become the source of that first line you drew.  As for your second
question:  look at the Math Functions block in the Math Operations library.

If you still need help, put your Simulink model on some file hosting site
email it to me directly.]

--
Steve Lord
slord@mathworks.com
http://www.mathworks.com

```
 0

1 Replies
728 Views

Similar Articles

12/9/2013 7:28:42 PM
[PageSpeed]

Similar Artilces:

symbolic equation!
i want to solve two or mor symbolic equation (sin,cos,) and so i want to use some variable that they will have their value in previuos line of program and they just get the value in the program and i will use them with variables because they will change in the while() loop when ever it run!for each increase the loop number.... i can solve the equation with symbolic terms and then how can i do to the progaram to replace the variable in it with their exact value!!!!!!!

roifill equation
Usually the documentation is very specific about the underlying mathematics, but this function: http://www.mathworks.com/help/toolbox/images/ref/roifill.html just says "by solving Laplace's equation". Does anyone know exactly the formulation used in this function? (i.e. what are the boundary conditions, etc)? Thanks, David

Impossible Equation
Hello, I have a design that should output TRUE or FALSE as the result of a very large equation made with 256 inputs combined by 8! There are about 7 000 000 lines of code like below!! Anybody know of a VHDL compiler capable to optimize such a huge equation? Thanks! Pout <= (Pinp(13) and Pinp(4) and Pinp(63) and Pinp(48) and Pinp(16) and Pinp(5) and Pinp(112) and Pinp(45)) or (Pinp(13) and Pinp(4) and Pinp(63) and Pinp(48) and Pinp(16) and Pinp(10) and Pinp(224) and Pinp(38)) or (Pinp(13) and Pinp(4) and Pinp(63) and Pinp(48) and Pinp(16) and Pinp(19) and Pinp(224) and Pinp(38...(24) and Pinp(58) and Pinp(125) and Pinp(49) and Pinp(16) and Pinp(30) and Pinp(210) and Pinp(9)) or (Pinp(24) and Pinp(58) and Pinp(125) and Pinp(49) and Pinp(16) and Pinp(30) and Pinp(224) and Pinp(8)) or (Pinp(24) and Pinp(58) and Pinp(125) and Pinp(49) and Pinp(16) and Pinp(39) and Pinp(102) and Pinp(5)) or ����������������� ����������������� On Thu, 24 Jan 2008 16:31:33 +0100, Ndf <ndf123456789@yahoo.fr> wrote: >I have a design that should output TRUE or FALSE as the result of a very >large equation made with 256 inputs combined by 8! There are about 7 000 >000 lines

PDE equation
How can i resolve with the PDE Toolbox a one dimension parabolic equation: u'=div(k*grad(u))+f(t,x) t=0:1 x=0:2 k=0.5 u(0,x)=sin(x),and the mixed condition u(t,a)+grad(u)(t,a)=cos(t)*sin(0)+cos(0)*sin(t) u(t,b)+grad(u)(t,b)=cos(t)*sin(2)+cos(2)*cos(t) Cristian, Perhaps PDEPE can help? Take a look at >> help pdepe Good luck, Jacek -------------- "Cristian M�ller" <cristian.muller@web.de> wrote in message news:eeff8a8.-1@webx.raydaftYaTP... > How can i resolve with the PDE Toolbox a one dimension parabolic > equation: > > u'=div(k*grad(u))+f(t,x) > t=0:1 > x=0:2 > k=0.5 > > u(0,x)=sin(x),and the mixed condition > u(t,a)+grad(u)(t,a)=cos(t)*sin(0)+cos(0)*sin(t) > u(t,b)+grad(u)(t,b)=cos(t)*sin(2)+cos(2)*cos(t)

solving diffrential equation
Please tell me how to solve the differential equation given below .. . A*x +B(t)*x+C(t)*x=D*sin(w*t) Where A and w are conatant B and C are functions of time .. means single derivative ... means double deerivative Niranjana wrote: > > > Please tell me how to solve the differential equation given below > > .. . > A*x +B(t)*x+C(t)*x=D*sin(w*t) > > Where A and w are conatant > B and C are functions of time > . means single derivative > .. means double deerivative > > this is an ODE, type ode at help of matlab or help ode45 in the command window, there is lots of examples. tk

how to solve trigonometric equation
Dear all, I would like to solve the following equation between 0 and 2 pi. A*sin(w*t-p)+2*B*sin(2*w*t-q)=0 where A, B, w, p, q are constants. t=? Is there any way in Matlab to solve this equation? Thanks On Jun 7, 9:36=A0pm, "Philippe " <philipp...@hotmail.com> wrote: > Dear all, > > I would like to solve the following equation between 0 and 2 pi. > > A*sin(w*t-p)+2*B*sin(2*w*t-q)=3D0 > > where A, B, w, p, q are constants. > > t=3D? > > Is there any way in Matlab to solve this equation? > > Thanks You need the Symbolic Toolbox >> syms A w t B q p >> t =3D solve(A*sin(w*t-p)+2*B*sin(2*w*t-q)) /reza "Philippe " <philippeb3@hotmail.com> wrote in message <ismjm4\$qe6\$1@newscl01ah.mathworks.com>... > Dear all, > > I would like to solve the following equation between 0 and 2 pi. > > A*sin(w*t-p)+2*B*sin(2*w*t-q)=0 > > where A, B, w, p, q are constants. > > t=? > > Is there any way in Matlab to solve this equation? You can do it by hand. Start with the sin of a sum identity to get rid of those p and q terms. sin(x+y) = ... Then reduce sin(2*x) using

matrix equation #3
Hi. How can I get the solution x of the problem as blow using matlab? a*x = y*(x*V*x)^(1/2) where a is a scalar, x is unkown n by 1, y is n by 1, and V is an n by n matrix. Thanks everyone here! (correts the error of the problem) Hi. How can I get the solution x of the problem as blow using matlab? a*x = y*(x'*V*x)^(1/2) where a is a scalar, x is unkown n by 1, y is n by 1, and V is an n by n matrix. Thanks everyone here! "JD Lee" <infshare@dreamwiz.com> wrote in message <hm2stu\$mpo\$1@fred.mathworks.com>... > (correts the error of the problem)

Can labview solve this equation?
Hello, I need to solve this equation in labview to t . X and Y are known values. <img src="http://vanons.e-dentify.nl/upload/formula1.jpg"> And if this part can't be larger then 1. If it is, it should be made 1. <img src="http://vanons.e-dentify.nl/upload/formula2.jpg"> I have really no idea where to begin to solve this problem. Thanks in advance! If you are actually trying to solve it recursively, then Newton's Method should work. Actually after checking it, it's obvious the that any value of t at the input will give you the correct value of t at the output. Message Edited by rpursley8 on 11-21-2005 12:09 PM

Integral-Differential Equation
I'm getting hard time with solving the transport equation in a semiconductor. Most books introduce simplifications which I don't want to incorporate. In the end I get a system of two integral-differential equations of two function with respect to one variable: EQ1: A * f1(x) * Integral_from_0_to_x_by_dx(f2(x) - f1(x) - F(x)) = B * df1(x)/dx EQ2: C * f2(x) * Integral_from_0_to_x_by_dx(f2(x) - f1(x) - F(x)) = D * df2(x)/dx where A,B,C,D are constants, F(x) is known function, and f1 and f2 are tunctions to be solve. My question to the group is, if there any way in matlab to solve such system, or if I'm missing some trivial transformation, or if I have to write the numerical methods from scratch. Jan Wicijowski

Help me to solve equation
How I can solve this equation by matlab, I have value of variable Y and I want to get Value of X? Y = X^5 + 10 *X^4 - 14 *X^3 + X^2 - 20 *X Power wrote: > How I can solve this equation by matlab, I have value of variable Y and > I want to get Value of X? > > Y = X^5 + 10 *X^4 - 14 *X^3 + X^2 - 20 *X Rewrite it as X^5 + 10*X^4 - 14*X^3 + X^2 - 20*X - Y = 0. so Y is the constant term of the polynomial equation. You want the roots (in general, five of them, up to four of which may be complex) of the polynomial X^5 + 10*X^4 - 14*X^3 + X^2 - 20*X - Y HELP ROOTS - Randy