Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 2

Réponse apportée
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. ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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 ....

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 3

| A accepté

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

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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....

presque 3 ans il y a | 0

Réponse apportée
Problem with cubic root
nthroot(-1, 3)

presque 3 ans il y a | 3

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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; ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How can I get "simple PID closed-loop controller" code for Matlab function for applying in simulink ?
@Rawaz Aziz, From the description of the problem, it seemed that you want a modified closed-loop controller like this: % pid co...

presque 3 ans il y a | 0

Réponse apportée
2-order linear differential equation with paramaters
Hi @Antonino Roccaforte, I'm unfamiliar with your ODE, but I tested it with dsolve, and there are some results, and one of the...

presque 3 ans il y a | 0

Réponse apportée
Dealing with transfer function in symbolic math toolbox.
Hi @Hamza Harbi In MATLAB, the transfer function is preferred to be modeled as a tf-class System Object, which is used for simu...

presque 3 ans il y a | 1

Réponse apportée
Plotting trapezoids in one graph
Hi @davut The complementary trapezoid is different from the flipped trapezoid, and thus, they have different mathematical formu...

presque 3 ans il y a | 1

Réponse apportée
how to make bode plot in simulink system
Hi @Kyungmin You can insert the Bode Plot block in the Simulink model and follow the steps described in this link for visualizi...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
how to apply single controller to multiple systems
Hi @K Kalanithi Here is a relatively simple script demonstrating an example of how to plot all responses of multiple systems th...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Solve the Pendulum problem 2θ¨=-2sinθ-3θ˙
Hi @Nirupa If you are determined to learn solving differential equations using MATLAB, there are various examples in the follow...

presque 3 ans il y a | 0

Réponse apportée
Writing functions f(x,y)
Hi @Kaleina For a static function, especially a function of two variables, this is how I systematically find the minimum point....

presque 3 ans il y a | 2

Réponse apportée
How to automatically find the function that linearizes another function.
Hi @Federico Massimi Some instruments may respond nonlinearly when the measurement signal is out of the standard operating rang...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
can i decide the RL agents actions
Hi @Sourabh I believe that it has something to do with the StopTrainingCriteria and StopTrainingValue options of your rlTrainin...

presque 3 ans il y a | 0

Réponse apportée
Error using bell Derivative of state '1' in block 'afasm50b22/VSC Control1/VDC Regulator/PID Controller1/Integrator/Continuous/Integrator' at time 0.055735 is not finite. The
Hi @wael The primary error is most likely caused by a division-by-zero term occurring when one of the state variables approache...

presque 3 ans il y a | 0

Réponse apportée
what is the code for plotting the differential equation w.r.t. a particular parameter not w.r.t. time. help please?
Hi @ZAHID YOUSUF If you are familiar with second-order systems like the harmonic oscillator, here is an example that shows a 3-...

presque 3 ans il y a | 1

| A accepté

Charger plus