回答済み
Dear researchers, how can can I simulate nonlinear disturbance observer for UAV on Simulink?
Hi @ALABA PHILIP OPAYEMI There are two Dryden Wind Turbulence Model blocks: one is continuous and the other is discrete. Check ...

4年弱 前 | 2

回答済み
for simulation of pid controller what should I use N filter coefficient value 1 or 100?
Hi @SASANK DAS, I don't know your Buck Converter model. However, in this example, the filter divisor is 751. Generally, the va...

4年弱 前 | 0

回答済み
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki Thanks for your vote. You can use the gensig() function to generate the sine wave input, and then use lsim()...

4年弱 前 | 1

回答済み
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki If you find the performances and tuning are acceptable, please consider voting 👍 the Answer. Thanks! The Pl...

4年弱 前 | 2

回答済み
Integration of system of ODEs fails, unable to meet integration tolerances
Hi @Luca Biddau There is nothing wrong with the assumption of the equation. However, the idealized differential equation of the...

4年弱 前 | 1

回答済み
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki Since you have state-space model, it is recommended to implement linear state-space system using the State-S...

4年弱 前 | 2

| 採用済み

回答済み
How to use LQR regulator for nonlinear system?
Hi @Dario You just need the lqr() function to compute the gain matrix . Once it is obtained, you can extract the gain values fo...

4年弱 前 | 1

| 採用済み

回答済み
Use simulannealbnd without specifying the Upper andd lower bound
Hi @Subrat Bastola There is no issue in this example. Perhaps, try clearing lb and ub variables from the Workspace. fun = @(x)...

4年弱 前 | 0

回答済み
bode plot of simulink model using matab commands (codes)
Hi @Mahdi Zolfaghari This is an example to get the Bode plot with MATLAB code: Gp = tf([1 3], [1 2 3 0]) bode(Gp) margin(Gp)...

4年弱 前 | 0

回答済み
Solving the system axy=x+y, bzw=z+w, cyz=y+z, dxw=x+w
Hi @mehrdad hosseini, It will be helpful if you can type out the nonlinear equations in MATLAB first. See the example here, a...

4年弱 前 | 0

回答済み
I couldn't understand the problem in it? and I did't know where I should put the "o" ?
Hi @SAHIL SAHOO I guess that is an error in your ode argument, things that are inside the brackets of ode45(). I believe 'o' s...

4年弱 前 | 0

回答済み
bisection method code help
Hi @Angelina Encinias, I did not change anything. The bisection code works for a simple test below to find : fcn = @(x) sin(...

4年弱 前 | 0

回答済み
Simple question: How to set the complex part = 0 in an array?
Hi @Ashfaq Ahmed How about like this? a = [2+0i; 3+3i; 5+0i; 8-4i; 6+9i] b = real(a)

4年弱 前 | 3

| 採用済み

回答済み
Bisection method for finding angle
Hi @Angelina Encinias This should help you to visualize how to approach the problem. Since the solution space is between 0° and...

4年弱 前 | 0

回答済み
How to use Bode plot with exponential complex funtion
Hi @David Oestlund Maybe like this: R = 2; C = 3; G = tf([R*C 0],[R*C 1], 'InputDelay', 3) margin(G)

4年弱 前 | 0

回答済み
Placing Obstacles in XY plot in Simulink with Obstacle Block
Hi @T.R.O You have an unclosed question on the robot trajectory: https://www.mathworks.com/matlabcentral/answers/1788465-mobil...

4年弱 前 | 0

回答済み
How do I make a user-defined square wave generator in simulink model?
Hi @Rakib Perhaps you can try this one: tau = 20; % period of the square wave Ts = tau/(2^10); % 2^10 samples pe...

4年弱 前 | 0

回答済み
How can I get the function g(x) (way to solve functional equation)
Hi @봉훈 정 Not sure if this is what you want. If is an even function (as explained by @Chunru), where the graph is symmetric wit...

4年弱 前 | 1

| 採用済み

回答済み
During simulation of mathematical model occuring following error
@Kunal Vasudeo Mahajan The evolution of the states due to one or some unknown singularity-induced terms (something happened in ...

4年弱 前 | 0

回答済み
Mobile robot tracking behavior in XY graph
Hi @T.R.O You can try generating the Cubic Polynomial Trajectory. Check this example and see if it is good enough or suitable f...

4年弱 前 | 0

回答済み
solution of coupled differential equation
Hi @asim asrar The second-order coupled system looks like a boundary value problem, where you need to find the initial values o...

4年弱 前 | 1

回答済み
Construct reference model for adaptive controller.
Hi @Nour Akmal Perhaps you can describe how the system state should behave according to the desired reference in your mind. Yo...

4年弱 前 | 2

| 採用済み

回答済み
I want to draw this step function by script code.
Hi @Sol Elec, I'll show you the basic concept of how to construct this 5-sec delayed square wave. t = linspace(0, 6, 601); ...

4年弱 前 | 0

回答済み
I dont understand the error
Hi @shir hartman Edit: After understanding what you really want in your latest clarification. There is a simpler and intuitive ...

4年弱 前 | 1

| 採用済み

回答済み
second order to first order
Hi @Cesar Cardenas I suspect that your 2nd-order ODE was incorrectly written. Please check. If it is a linear damped spring sys...

4年弱 前 | 1

| 採用済み

回答済み
How to create a state space equation from three differential equations where input(u) is multiplied by state (x1)?
Hi @Gaston Gabriël This is a nonlinear system, which cannot be expressed in the standard linear state-space model unless...

4年弱 前 | 0

回答済み
Replace linear predictive drivers with PID controllers
Hi @Waseem Shatto I guess you can select the "Driver-input-to-the-vehicle" Block, by moving your mouse cursor over the block an...

4年弱 前 | 0

回答済み
Second order diffrential equation solve using ode 45
Hi @Abhik Saha The code is fixed below. This is a 2nd-order system, and so there are two state variables and two initial values...

4年弱 前 | 1

| 採用済み

回答済み
How to find the integer values of the following system of equations
Hi @Wallace Positive integer solutions for Equations 1, 2, 3 are given below. You can populate them to include the negative int...

4年弱 前 | 1

回答済み
Finding the H infinity norm of a system
Hi @Kashish Pilyal Perhaps try using hinfnorm() to compute the H∞ norm of a dynamic system. Edit 1: Looking at your code, it s...

4年弱 前 | 0

さらに読み込む