Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 0

Answered
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(...

3 years ago | 0

Answered
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)

3 years ago | 3

| accepted

Answered
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...

3 years ago | 0

Answered
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)

3 years ago | 0

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 1

| accepted

Answered
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 ...

3 years ago | 0

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 1

Answered
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...

3 years ago | 2

| accepted

Answered
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); ...

3 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 0

Answered
in this I apply a loop so that I will have different value of Y(:,11) for the different value of initial condition for Y(:,11), what is correct algorithm for this??
Hi @SAHIL SAHOO Your k vector is assigned incorrectly. Try if this code works for you. ti = 0; tf = 1E-3; tspan = [ti ...

4 years ago | 1

| accepted

Answered
First order PID controller
Hi @John Rogers Just some additional info. The plant is a 1st-order Type-0 system. num = [85]; den = [42 1]; Gp = minreal(t...

4 years ago | 0

Answered
pid for dynamic malaria
Hi @af af Not sure what are PID controllers for the Malaria dynamics. However, by the mathematical manipulation, you can probab...

4 years ago | 0

Answered
How to implement PID anti-windup in my m-file (i.e., without using Simulink)
Hi @Ali Not sure if you are still interested. If the output of is within the range of the actuator, then the anti-windup is pr...

4 years ago | 0

Answered
How to; For loop of angle in projectile motion
Hi @Aston g = 9.82; % gravity v0 = 100; % inital velocity theta0 = pi/6; ...

4 years ago | 0

Answered
How to find the value of PID using ziggler 2 method
Hi @Raka Adhwa Unsure if you are still interested in the problem. But if the model is available, then the analysis can be perfo...

4 years ago | 0

Answered
Density Control in Tank (TL) - Simscape
Hi @Keshav Arora, thanks for the density equation. I'm don't know how density works in the Simscape watertank. However, you ca...

4 years ago | 0

Answered
Design PI regulator with constrictions
Hi @Alejandro Fernández Proposal #1: Linear compesator If the restriction on the output of the compensator can be relaxed a l...

4 years ago | 0

Answered
PID controller optimization in simulink using parallel simulations in objective function
Hi @Irfan Khan I'm unfamiliar with the Simulink approach, but in MATLAB, the script to find the PID gains subject to ITAE crite...

4 years ago | 0

Load more