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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 3

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

Risposto
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; ...

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

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

quasi 3 anni fa | 1

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

quasi 3 anni fa | 0

| accettato

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

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 2

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

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

| accettato

Risposto
Plotting system outputs together with different time intervals for each system? HELP!
The lsim() function offers better control than the step() function. t = 0:0.001:15; Ts = [1 2 3 4 5]; w = 4./Ts; for j = 1...

quasi 3 anni fa | 0

Risposto
Problem related with "odeToVectorField"
I don't see any symbolic differential variables in these three so-called ODEs. That's why odeToVectorField() threw the error mes...

quasi 3 anni fa | 0

Risposto
How to get a view of Membership function in Fuzzy logic ??
Instead of printing the screen to create a screenshot of the membership functions (MFs), you can use the function plotmf() to pl...

quasi 3 anni fa | 0

Risposto
How to model PID flow control with throttling (butterfly) valve in wells turbine in owc?
Hi @Rania Modeling in MATLAB generally requires a good understanding of the system that you intend to control. Start by develop...

quasi 3 anni fa | 0

Risposto
Reinforcement Learning algorithm to tune PID parameters of a system
Hi @Bipratip, I didn't check everything, but I noticed that you reused the same quadratic cost function (Reward in RL terms) fr...

quasi 3 anni fa | 0

Risposto
Problem using tf to perform a transfer function.
Hi @Leaysia Lampkin If you are unable to obtain the Control System Toolbox, many useful MATLAB-compatible functions can still b...

quasi 3 anni fa | 1

Risposto
Please help me find a PID controller coefficient
Assuming the Ideal form: The PID controller in MATLAB takes the practical form , where represents the time constant of the de...

quasi 3 anni fa | 0

Risposto
How to find the equilibrium points of dynamics system?
The system has two equilibrium points ( and ). It is possible to evaluate the system's stability through a graphical method. Fro...

quasi 3 anni fa | 1

Risposto
Matlab code for 2nd order differential equations
Hi @KARUNA BOPPENA Which textbook are you referring to for this problem? This appears to be a boundary value problem. The so...

quasi 3 anni fa | 1

Risposto
How to convert simulink based Reinforcement learning environment to function or script based.
Hi @Chetan Thakur I believe you can create a MATLAB function to describe the water level in a pump-driven storage tank, and the...

quasi 3 anni fa | 1

| accettato

Risposto
Solve closed loop system equation with disturbance input via function handle
Hi @Fabian Friz In addition to using the 1-D data interpolation method interp1(), as suggested by @Torsten, it is also possible...

quasi 3 anni fa | 1

Risposto
Ordinary differential equations with two unknows (ode45)
Hi @Mei Cheng If ode15s() solver is used, the simulation runs. You should be able to plot the results. p.a = 0.0062; p.b...

quasi 3 anni fa | 1

| accettato

Carica altro