# Questions tagged [control-systems]

Questions on the use of Mathematica to analyze, design, and simulate continuous- and discrete-time control systems.

208 questions
Filter by
Sorted by
Tagged with
1 vote
51 views

### Phase unwrapping of transfer function model for calculating group delay [duplicate]

Suppose that I have a transfer function model ...
71 views

### Plotting horizontal lines on Bode plot

I have an array of transfer functions and plotted multiple Bode plot. Now I need to add a horizontal line to show where all these Bode plots attain a gain of -8db. I know that previously people ...
108 views

### The nonlinear state-space model of a spherical pendulum cannot be linearized and cannot be controlled?

I am attempting to model and control a spherical pendulum. I have derived the equations as follows: ...
307 views

1 vote
163 views

### BodePlot to calculate the amplitude and phase at a specific frequency

I have transfer function: $W=\frac{1}{s+1}$ tf = TransferFunctionModel[{{1/(s + 1)}}, s] BodePlot[tf, {.01, 100}] It is very simple to construct a Bode diagram, ...
1 vote
91 views

### Asymptotic Output Tracking: Compensator properties

Asymptotic Output Tracking: Code Issues The question is, rather, of a theoretical nature (practical applications can be viewed in the topic at the link). Asymptotic Output Tracking is said to be based ...
61 views

### OutputResponse numerical error?

It shoud approach to 1 and remains at 1, but when time over 20s it deteriorates. Mathematica 12.1 ...
1 vote
69 views

### Multidimensional obstacle avoidance in ODE. Part II

Multidimensional obstacle avoidance in ODE (Visualization) https://math.stackexchange.com/questions/4146255/multidimensional-obstacle-avoidance-in-ode For some time, I studied this question more ...
1 vote
77 views

### Notation parse rule does parse when it acts as a argument

https://reference.wolfram.com/language/Notation/tutorial/NotationSymbolizeAndInfixNotation.html Notation[boxes ⟹ expr] set boxes to be parsed to expr I want a simplified notation for entering a ...
126 views

### Multidimensional obstacle avoidance in ODE (Visualization)

A simple 3-dimensional ODE system is given: $F=\begin{cases} \dot{x}=g+g_{U_{rep}} \\ \dot{g}=-g+\frac{df}{dx} \\ \dot{h}=-h+\frac{d^2f}{d^2x} \end{cases}$ Task: Make the variable $g$ move so that ...
1 vote
166 views

46 views

### Affine state-space: Nonlinear output

I am using a system of equations to experiment: $\begin{cases} x_1'=x_2 \\ x_2'=x_1^2-x_2+u \end{cases}$ As an output, I want to use the following non-linear output: $y=e^{-x_1^2}$ ...
170 views

### Asymptotic Output Tracking: Code Issues

My question is a continuation of the topic Which way of solving from nonlinear control to choose?, and in the future I plan to expand this question. I want to try to apply this article https://www....
1 vote
38 views

### Which way of solving from nonlinear control to choose?

I have a nonlinear system: \begin{cases} x'=f(x)+u \\ y=f(x) \end{cases} where $f(x)$ - gradient of some one-extremal function (for example $f=e^{-(x)^2}$), i.e. $\frac{df}{dx}$. I want to construct a ...
143 views

### NDSolve Error - There are fewer dependent variables, than equations, so the system is overdetermined

I have a program in which I am simulating the motion of two-wheel vehicle. I have four global parameters xo (position x of rear wheel), yo (position y of rear wheel), teta (the angle of inclination of ...
68 views

### How to code a Sum Block when working with Transfer Functions?

I am working using transfer functions models with Mathematica and i am missing a basic feature like the ability to use a Sum Block. How could the model above be modeled? Considering: ...
1 vote
84 views

### Do Loop contained in a function defined within a custom package doesn’t work as expected but works fine when function is defined directly in a script

Below is my code and I am having problems running the StdMPC function that I am trying to define. Running my code gives me the error that the matrix A and Xopt[[i]] are not of compatible shapes for ...
71 views

### How to solve this linear complementarity problem with NDSolve or other functions? The arguments should be ordered consistently

I want to find a numerical solution of $\omega(t,q)$, where $t\in[0,T]$ and $q\in[0,N]$. $q_t$ is a determinstic w.r.t $t$, other unmentioned parameters can be fullfilled or given by the user. I met ...
1 vote
55 views

89 views

### TransferFunctionModel produces large coefficients

First, I define the following transfer functions using TransferFunctionModel: ...