We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [simulink]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
74 views

Simulating a moving coil meter with Simulink

I have to model/simulate a moving iron meter with Simulink, more specifically, I need to build a Simulink model for the equation of motion, wich is given as: $$ \theta\ddot{\alpha} = T_\phi - T_S $$...
0
votes
0answers
7 views

How to restrict solver computation to a fixed time and repeat the obtained sequence for the rest of the interval

I have designed a custom component using simscape in which a differential equation needs to be computed only for a single time period and the values obtained during that calculation needs to be ...
0
votes
0answers
34 views

Convolution integrals in Simulink

Problem I have a dynamic system governed by the following equation: $\displaystyle K(s)+\frac{1}{\mu_g}\int_0^s\frac{1}{2\pi}C_{L_\alpha}(s-s_1)K(s_1)ds_1=\int_0^s\frac{1}{2\pi}C_{L_g}(s-s_1)\frac{d\...
0
votes
2answers
54 views

Help with integration of first moment from PBE

I'm wondering anyone can help me with the following integration: $$\frac{d(m_0 V)}{dt} = BV$$ where $B$ is just a constant, $V$ is a variable parameter. Product rule must be applied somehow? EDIT: ...
0
votes
0answers
14 views

Using delay block in Simulink to account for flow rate in a fluid loop

I am trying to model a fairly simple cooling system loop where coolant flows over a battery to remove heat, then flows into a large reservoir where the coolant is mixed, coolant then flows out of the ...
0
votes
0answers
47 views

How to determine the position and time of intersection of a moving cone and basic shapes in a 3D environment?

I created a Simulink model in which two objects are moving in a 3D environment (objets have six degrees-of-freedom). The main object has the characteristics of a cone and the second object has the ...
1
vote
1answer
158 views

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 ...
1
vote
1answer
71 views

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 ...
0
votes
2answers
28 views

How to find the the relationship between different numbers

Assuming i have 4 numbers a,b,c and d, my question is how can i find the right set(s) of operands ...
2
votes
0answers
95 views

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_{\...
1
vote
1answer
221 views

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. ...
0
votes
1answer
88 views

Graphical Simulators (Simulink) vs traditional mathematical languages (MATLAB, Python)

I want to specifically create models for large biological systems involving partial differential equations(diffusion equation) as well as using ODE's etc. I'm still and undergraduate student so this ...
0
votes
1answer
91 views

Controller for Non-holonomic agents

I have designed a certain controller for a group of holonomic agents (I was assuming that they were holonomic and that they were able to move in the 3D space) Now I want to use the same controller ...
0
votes
1answer
180 views

Create Simulink block with a number on it

I was wondering how you create the block where there is a number on it. The blocks I'm refering to are the ones where there is a 3 or 4. Can't find the right block.
1
vote
1answer
191 views

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), ...
0
votes
0answers
222 views

FIR filter approximation using a continuous time dynamical system

How can you approximate a Finite Impulse Discrete filter (FIR) using a continuous time linear dynamical system? I am seeing this problem using Matlab, where the resulting continuous system (obtained ...
0
votes
3answers
165 views

Basic Mathematics (on MATLAB & Simulink)

I need some help for the below equation, is there any function which could help me to solve for b variable in MATLAB & Simulink? Otherwise, which numerical methods would you prefer? $$\frac{a-b}{...
0
votes
0answers
567 views

Direction of rotation in matlab/simulink

I have a general question. In Simulink, say you have identified an axis for a revolute joint (x,y,z):(1,0,0) and you plot the angle. Is the normal convention the right hand rule? In this case positive ...
3
votes
1answer
4k views

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 ...
0
votes
2answers
191 views

uniqueness of svd decomposition and its role in statistical analysis

let us consider following model according to following link http://www4.ncsu.edu/~ipsen/REU09/chapter4.pdf it says that : The singular values are unique, but the singular vector matrices are not ...
1
vote
2answers
3k views

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?
1
vote
1answer
885 views

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 ...
1
vote
1answer
63 views

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 ...
0
votes
1answer
1k views

Reciprocal -block in Simulink?

I have nonlinear-differential -system for water-flow. I need to find the reciprocal -block in Simulink. I could do it with reciprocal-sqrt -block and sum -block but too complicated, there must be some ...