Questions tagged [simulink]

For questions about or relating to Simulink, a graphical programming environment for modeling, simulating and analyzing multidomain dynamic systems.

Simulink, developed by MathWorks, is a graphical programming environment for modeling, simulating and analyzing multidomain dynamic systems. Its primary interface is a graphical block diagramming tool and a customizable set of block libraries. It offers tight integration with the rest of the MATLAB environment and can either drive MATLAB or be scripted from it. Simulink is widely used in automatic control and digital signal processing for multidomain simulation and Model-Based Design.

Source: https://en.wikipedia.org/wiki/Simulink

34 questions
4
votes
1 answer

Problem designing a control law

I am trying to build a posture regulation control which works with acceleration inputs. Doing it with velocity inputs,I have well understood how it works. Moreover,for now, the controller only controls the position $x,y$ and sends to zero these two…
3
votes
1 answer

Roll PID Control for quadcopter

I'm trying to implement with simulink a PD controller for my quadcopter. I use a simplified model, and for the roll case I have $ I_x * \phi = L $, where L is the roll torque. So, the transfer function of my model is $ Ix/s^2 = L $in continous…
Daniel
  • 41
2
votes
1 answer

Regressor-passivity robot control. Help with simulation (Simulink/Matlab).

I'm trying to simulate a 2DOF planar pendulum with a regresor-passivity control, the thing is I've been having some issues with my simulation, I'm using Simulink, but in theory I know my control law should make the states of the system to converge,…
2
votes
0 answers

Simulating people flow into and out of a store

I'd like to get some advice on how you would tackle the following problem: I would like to simulate a dynamic system, namely the flow of customers who enter and leave a store. I think about modelling the system along the following lines: Certain…
2
votes
0 answers

Which function from SciLab should I use to develop a robust controller?

I have been used SciLab for a day from now and I really excited to develop so called "H_{\infty}" controllers. Normaly I have used LQG-controllers with integral actions, but I have heard that $H_{\infty}$ controllers is much better in real life…
1
vote
1 answer

Differential Equation to Linear State-Space Model

I derived a differential equation for a system that I am studying that takes the following form: $$\dot{x}-au_1(x-x_0)=bu_2+cu_1$$ This was derived from expanding a non-linear differential equation as a Taylor series about the operating point $x_0$…
1
vote
0 answers

French newbie looking for feedbacks on Simulink simulation

I am new on this forum and I hope that I will provide useful answer to mathematics problems that people might have to face in the future. Also, I do want to meet mathematicians from all over the world aha I am currently discovering Matlab Simulink…
1
vote
2 answers

Simplifying Cascading State Space Models

I have the following 2 state space…
1
vote
1 answer

Is it allowed to use the quadratic solution formula for a differential equation

I have some trouble with a challenging fluid mechanics problem. The problem leads me to a non-linear ode 1st order. $0={\dot p_C}^2+\frac{k_1}{k_2 C}\dot p_C+\frac{p_C-p_0}{k_2C^2}$ My Idea was now to change the equation to $\dot p_C$ and solve this…
1
vote
1 answer

Getting differential equation from Boyle's law

I'm trying to simulate pipe installation with known amount of air in Simulink and design a PI controller for it. I was able to construct equations which reflects well my real installation. My pressure calculations is based on Boyle's law and…
1
vote
1 answer

Change in sine function every n'th period

I am trying to model a gear with a gear tooth defect in the MATLAB/Simulink Simscape-environment. A tooth defect appears as an momentarily loss in gear meshing stiffness, which can be implemented in the model by modeling a square wave signal with a…
1
vote
1 answer

Can I use discontinuous functions in my model - State space & Transfer function

When I simulate physical models I often use state space or transfer function matrecies. I like to use this library: https://octave.sourceforge.io/control/overview.html Very powerful and well updated. But the problem with physical models is that I…
euraad
  • 3,052
  • 4
  • 35
  • 79
1
vote
1 answer

How to define the curvature of a function in simulink

English is not my native language so be tolerent please, you can edit the question as you pleases. I have a model in simulink (matlab) where I have a function (for example $f(x)$ like in the image), I need a block in simulink (or at least a…
1
vote
2 answers

Simulink model from a nonlinear State Space

I have the nonlinear state space already constructed in MuPAD as shown: u is the input and y is the output. What is the best way for me to take this to Simulink?
romanbird
  • 177
0
votes
1 answer

How does MATLAB Simulink get such accurate ODE solution results?

I have a fixed-step model (0.001s) in Simulink in which a second order ODE is effectively being set up, a free spring-mass-damper system (m=2, c=0.3, k=1, x0=0, x_dot_0=4). I am studying the solvers and in particular the implementation of the fourth…
J Collins
  • 155
1
2 3