Risposto
ODE 45() equation problem, in the output screen, there are dozens of ans = 0 and ans = 1.
Hi @Sarah Millikin An example is shown below: tspan = [0 10]; x0 = 0; [t, x] = ode45(@odefcn, tspan, x0); % Solution...

circa 3 anni fa | 0

Risposto
How to design a fractional order pid controller?
Hi @mohammad sh Unsure if you are asking about the math or the code. If math, then you should learn about the fractional-order ...

circa 3 anni fa | 1

| accettato

Risposto
My Pole Placement is giving an error
Hi @johannes, For SISO systems (as in your example), it is possible to manually determine the gain matrix such that the multipl...

circa 3 anni fa | 0

Risposto
I wonder why the following code is not able to give a valid output? My objective is to solve a system of simultaneous ODEs with dirac comb func.
Hi @Mridupawan Deka I'm unsure if you expect the solutions like in these plots. Please check the functions of . The Dirac del...

circa 3 anni fa | 0

Risposto
How can I find equilibrium points in a non linear ODE
Hi @Karl-JR If you unsure of how to analytically find the equilibrium point for the unforced case, then try look for "how to fi...

circa 3 anni fa | 2

| accettato

Risposto
how can I get ABS Control/Simulation Toolbox?
Hi @Daniel Atomsa If you have Simscape, then take a look at this example of modeling the Anti-Lock Braking System (ABS). https...

circa 3 anni fa | 0

Risposto
Using problem based optimization to control a system
Hi @2Lindsay2, I'm unsure of what your expectation is. However, if the final position is changed to the origin, then the conver...

circa 3 anni fa | 0

Risposto
Runge-Kutta-4th-order solution of 3 ODEs
Hi @Turgut Ataseven Fix the code as indicated below: tspan = [0 20]; % Time interval y0 = [5 5 5]; % Initial conditions...

circa 3 anni fa | 2

| accettato

Risposto
how to to make model on simulink to check rise time ,overshoot ,steady state error of tf ?
Hi @Muhammad Since you can use tf() function, I presume you have the Control System Toolbox. In the Simulink model, you can se...

circa 3 anni fa | 0

Risposto
Solution Plot of the Constant Harvesting Function with Directional Field
Hi @Gith I'm unsure, but I think that it was the quiver scaling issue when the carrying capacity is too large (on the Y-axis),...

circa 3 anni fa | 0

Risposto
How to normalize surf plots?
Hi @Athira T Das Are you looking for a plot with normalized output? syms x y x0 = -.5:0.001:.5; y0 = x0; w0 ...

circa 3 anni fa | 1

| accettato

Risposto
PID altitude control of quadcopter
Hi @Dhruvilkumar Chavada The following example is based on the pure math analysis on the contineous-time equations of motion gi...

circa 3 anni fa | 0

Risposto
Predicting the value at y(t=8) using my model
Hi @Matt Boyles You can try something like the following to estimate the output. However, there is no guarantee that the estima...

circa 3 anni fa | 0

Risposto
State-Space Matrix Closed Loop System C Matrix issue
Hi @Pablo Graale The output of the state-space system is . Your Ackermann's controller is full state-feedback, not output-feedb...

circa 3 anni fa | 2

| accettato

Risposto
If I have a sigmoid equation depend on time and I want to input to Runge Kutta Orde 4Th equation. So, the graph show the sigmoid from Runge_kutta . How to call the function?
Hi @cindyawati cindyawati The RK4 algorithm by Cleve Moler, is available in File Exchange. https://www.mathworks.com/matlabcen...

circa 3 anni fa | 1

Risposto
How to change angles to 0 to 180
Hi @TTA Are you looking for the conversion like this? Angles180 = @(a) a/2 + 90; Result1 = Angles180([-180, 0, 180]) Res...

circa 3 anni fa | 1

| accettato

Risposto
how to design a second order sliding mode control for speed of switched reluctance motor on simulink ?
Hi @Mohammed Amin The block in Circle #1 is a Derivative Block, and the block in Circle #2 is the linear State-Space Block. Cli...

circa 3 anni fa | 0

Risposto
If I have a sigmoid equation depend on time and I want to input to Runge Kutta Orde 4Th equation. So, the graph show the sigmoid from Runge_kutta . How to call the function?
Hi @cindyawati cindyawati I'm unsure if I understand the issue correctly. Do you expect a plot like this? tspan = linspace(...

circa 3 anni fa | 1

| accettato

Risposto
How to model PI flow control with throttling (butterfly) valve in hydraulic centriful pump Simscape/Simulink model?
Hi @DB Due to the static nonlinearity of the valve characteristics, it is possible to find an inverse function for the valve in...

circa 3 anni fa | 1

Risposto
Solving a differential equation using ode45
Hi @GOBIND KUMAR, The code for the ode45 part can run. No issue with that. So, I think the problem lies in the computation of ...

circa 3 anni fa | 0

Risposto
Why Fuzzy logic Designer unable to open the Fis File?
Hi @Yara Physically check if the mamdanitype-01.fis is still there in the target folder. Check if the contents in the mamdani...

circa 3 anni fa | 0

Risposto
Derivative of state '1' in block ' 1/s Integrator' at time 42.104565484973058 is not finite
Hi @Yingxin Zhang Without a set of mathematical model to compare with the Simulink model, it is rather difficult to identify th...

circa 3 anni fa | 0

Risposto
Fuzzy Logic Toolbox - addRule throws "Do not use a rule keyword as a membership function name" error
Hi @tulu There are several typos. If you make the code less 'cluttered', you can spot the mistakes easily. The code is now is f...

circa 3 anni fa | 2

Risposto
simulation of a levitating object
Hi @Andeol Gillet Generally, you can follow these 3-D's steps to design the controller for a Maglev system: Derive the mathema...

circa 3 anni fa | 0

Risposto
tf and damp, all need the numerical coefficients of the transfer function
Hi @li hu Finding the poles (roots of the denominator) is like solving polynomial equations. However, if it is 5th-degree and ...

circa 3 anni fa | 0

Risposto
What is the best objective function to avoid the overshot when optimizing a PID controller?
Hi @aymene bacha First of all, you need to understand what causes the overshoot in the system, and what does not. Do you have ...

circa 3 anni fa | 1

Risposto
How can we represent this transfer function into state space representation in MATLAB?
Hi @Hind Aljallaf As far as I know, there is no MATLAB command in the Control System Toolbox for directly computing the control...

circa 3 anni fa | 0

Risposto
I get error when I try to plot sigmoid function
Hi @cindyawati cindyawati A pure sigmoidal logistic function looks like this x = linspace(-10, 10, 20001); S = 1./(1 + exp(...

circa 3 anni fa | 2

Risposto
how to right math functions
Hi @Abdulelah AlQahtani For simplicity, the signal can be defined like this. t = linspace(-5, 10, 15001); u1 = 0*(t <= 0); ...

circa 3 anni fa | 0

Risposto
How to use MATLAB's lqi.m function?
Hi @Craig Chambers I'm unfamiliar with you system. So, I tested with the LQR first. It seems that a properly scaled step inpu...

circa 3 anni fa | 0

Carica altro