Answered
How to simulate the forced response of a transfer function
Hi @Ali Almakhmari The 'lsim()' command is great when the Control System Toolbox is available. Here is an alternative approach ...

2 years ago | 1

Answered
How do I do a regress like this?
Hi @Leon I'm not exactly sure what you want. If you're looking to find the exact percentage drop, as @Image Analyst has shown y...

2 years ago | 1

Answered
How to find kp, ki, kd values from transfer function
The question (in the title) about finding PID gain values {, , } from an unspecified transfer function is not exactly clear. Giv...

2 years ago | 1

Answered
slow simulation because of integrator
Hi @Magda Since no details are provided to describe why the simulation is slow, I can only guess that the system is stiff. To a...

2 years ago | 0

Answered
How can i solve this.
@Nia, You can look up some examples here: https://www.mathworks.com/help/signal/examples.html More importantly, could you pl...

2 years ago | 0

Answered
how to find stable and unstable spiral point?
@Yixuan Qi, This is actually the Rayleigh Differential Equation. I assume you would like to utilize a graphical approach, as the...

2 years ago | 0

Answered
Integral MPC in Simulink
Hi @Ale_798 Thank you for clarifying the problem. I'm not an expert in MPC, but after reviewing your comment, I believe you can...

2 years ago | 0

Answered
LMIterm problem: Error using lmiterm, Complex number, NaN or Inf not allowed in A, B.
Hi @Syue-Cian The code looks okay. Can you show the matrix A_F? Performing Test #1: % Test #1 A_F = eye(2) setlmis([...

2 years ago | 0

Answered
wheeled mobile robot dynamic equation
HI @BINOY I don't see any specific question. Perhaps this is your first time asking a question in this forum. If you are not hi...

2 years ago | 2

Answered
Queries regarding PID Tuner app?
Hi @ABTJ The PID Tuner app assists designers in automatically tuning the PID control gains for a SISO plant to achieve a balanc...

2 years ago | 0

Answered
How to detect data that does not follow a bell curve?
Hi @Miguel Not sure if you can try it this way to compare the R-square value. Data that follows the bell curve tends to have a ...

2 years ago | 1

| accepted

Answered
why my “pid” parameters(Kp,Ki and Kd) values are not showing up in pidtuner tool?
Hi @ABTJ, The command pidtool(B, 'pid') launches the PID Tuner app and designs a PID controller for plant B. However, plant B i...

2 years ago | 0

Answered
watching PID controller output value at perticular point
@rathod ujjval rameshbhai, Since no performance requirements are specified, the pidtune() command can be used to automatically s...

2 years ago | 0

Answered
I need Ant lion Optimization Matlab code for controller design for Four Tank System to contimue my research work.
@Praveen Kumar, You can find the Ant Lion Optimization (ALO) algorithm implemented in MATLAB on File Exchange. However, please ...

2 years ago | 0

Answered
Please help me solve this material balance
Hi @Rachael @Torsten has shown you how to solve PDEs in MATLAB. From the PDEs, you need to rearrange and rewrite the equa...

2 years ago | 2

Answered
solve ode with ode45
Hi @Lan If I'm not mistaken, 'dr' stands for 'damping ratio.' You probably want to observe how the response dampens over time. ...

2 years ago | 0

| accepted

Answered
How to simulate multiple doses and generate only one plot?
Hi @Lo Are you looking to plot something like this? m1 = sbiomodel('onecomp'); r1 = addreaction(m1,'drug -> null'); k1 = a...

2 years ago | 0

Answered
ode45 solver argument error
Hi @Andria If you start the simulation from , then a singularity will occur due to the division-by-zero term '...*v/x'. However...

2 years ago | 0

Answered
how do i solve the attached system of ODEs?
Hi @Gabriel Samaila This is an analysis of the behavior of such that the states in Eq. (13), { and }, approach 0 as approache...

2 years ago | 0

Answered
Simple Question: How to Plot a Function over an Interval (Details in Body)
Hi @Michael Meyne Alternatively, you can also use fplot() to symbolically plot the function over the specified interval for ....

2 years ago | 0

Answered
Where is the mistake in (x.^2-y.)^2?
Hi @Shelsyn, Either the dot was misplaced, or f1 = @(x, y) (x.^2 - y).^2; % <-- the dot is outside of the parentheses figure...

2 years ago | 1

Answered
How to convert linguistic variables into fuzzy values?
Hi @Najat Ali Khalifa The fuzzy membership functions for the linguistic variables VeryCold, Cold, Warm, Hot can be created usi...

2 years ago | 0

Answered
fmincon with handle function input
HI @giacomo, I'm unsure if this is what you want to minimize using fmincon(). This is just a simple example without constraints...

2 years ago | 3

| accepted

Answered
What is wrong with this code.
Hi @ZAINULABADIN ZAFAR Update: Thanks to @Walter Roberson for finding the source (PDF). The MATLAB functions stabilitaetsanalys...

2 years ago | 0

Answered
How to fix algebraic loop error in PV
Hi @Venkateshkumar Mohan The simulation terminated because an error occurred at the Product5 block at time 0.0 s. Please check...

2 years ago | 0

Answered
incorrect answer of (-8)^(-1/3)
Hi @Sen The answer is correct. Please find the detailed explanation by @Walter Roberson in this thread: https://www.mathworks....

2 years ago | 0

Answered
Problem with cubic root
nthroot(-1, 3)

2 years ago | 3

| accepted

Answered
how to get the correct plot of function sin(N+1)*pi*x^2/sin(pi*x)^2 with different N
Hi @Daniel Niu I checked using the limit() function. syms x N y = limit((sin((N + 1)*pi*x)^2)/(sin(pi*x)^2), x, 0) N = sym(9...

2 years ago | 0

Answered
Write a MATLAB code where I'll show the plot or graph.
Hi @AZ Sajjad This is a piecewise linear function because it is defined on a sequence of intervals, and there are a few ways to...

2 years ago | 0

Answered
Trying to create a phaseportriat of the Van der Pol oscilator (VPO).
Hi @Luc Sloan You can assign a parameter that allows the script to repeat over a number of times. n = 100; ...

2 years ago | 1

| accepted

Load more