Risposto
one of the terms "Rho_net" on the RHS of an set is varying with time over the tspan. How do I implement the set of the ODEs such that the term updates at every time step?
Hi @Daniel The majority of your code remains unchanged. I simply relocated your ODEs into a function named 'dYdt' and incorpora...

circa 2 mesi fa | 0

Risposto
Newton Raphson gives answers divided by 0
Hi @Jean-Paul During the computation of M, certain elements involve divisions by . In the line 'dx = subs(M, xV, x)', an attemp...

circa 2 mesi fa | 0

| accettato

Risposto
Can I use one fuzzy's output to be one of the input of second fuzzy system?
Hi @Ko Ko It is indeed possible to connect the output of fis1 to the first input of fis2, as demonstrated in this example. This...

circa 2 mesi fa | 0

Risposto
How to simulate a non linear system
Hi @Gianluca Di pietro You should be able to compare the linear and nonlinear systems in the code provided by @Walter Roberson ...

circa 2 mesi fa | 0

| accettato

Risposto
designing a PID for a rotating shaft
Hi @Samuel Adshead Based on your non-specific descriptions or the control problem above, you generally need to get from here ...

circa 2 mesi fa | 0

Risposto
Why am I receiving an error for "odeToVectorField" when I am trying to convert second order differential equations to 1st order differential equations?
Hi @Akekaphop Kesavadhana Previously, theta1 and theta2 were created as scalar variables when they should be functions of time....

circa 2 mesi fa | 0

| accettato

Risposto
Find a controller for a feedback-loop
Hi @Davide Sometimes, it can be time-consuming to find a suitable controller that stabilizes unstable non-minimum phase systems...

circa 2 mesi fa | 1

| accettato

Risposto
Circular shifting or rotating structure of array elements
Hi @NALLARASU KRISH Me, first time using circshift(). So, I'm not entirely sure about your intention. Are you suggesting to swa...

circa 2 mesi fa | 1

Risposto
Simulation of control system with only matlab script withou simulink
Hi @Kamal, The Reactor system seems to exhibit stability even without any control inputs (u1 = u4 = 0). I'm curious about what ...

circa 2 mesi fa | 0

| accettato

Risposto
How to solve a system of ODEs using ode23s with multiple inputs.
Hi @Ron_S I simply wanted to ensure that the code was functioning correctly with the given external inputs. Therefore, I didn't...

circa 2 mesi fa | 1

Risposto
plotting a simple constant
Hi @Robert Before I discovered other special non-math functions like ones() and yline(), I used to rely on certain math tricks,...

circa 2 mesi fa | 0

Risposto
How to find transfer function to a second order ODE having a constant term?
Hi @PONNADA This type of differential equation is commonly encountered in examples involving an ideal undamped mass-spring syst...

circa 2 mesi fa | 0

| accettato

Risposto
ANFIS EDIT out of memory
Hi @Antonio Abela You mentioned that there are 10 inputs and 1 output. However, in the CSV file, there are 15 columns, with eac...

circa 2 mesi fa | 0

Risposto
How can I adjust the PID values in Simulink?
Hi @Elli I faced difficulties in effectively stabilizing the unstable 3rd-order system using solely the PID controller. Even th...

circa 2 mesi fa | 0

Risposto
How can I adjust the PID values in Simulink?
Hi @Elli, The 3rd-order linearized system is unstable because the second transfer function has a pole located in the right half...

circa 2 mesi fa | 0

| accettato

Risposto
How to run an ODE Function with a variable outside of the Differential Equation
@Adam, Do you expect the results as shown? figure hold on; R0 = .3; L = 2*pi*R0; Q = 0.01; x = 0:0.001:L; % I = - 4e8...

circa 2 mesi fa | 0

| accettato

Risposto
2% and 5% settling times
Hi @Daniel The intellectual explanation for the discrepancy could be that one of the settling times was measured incorrectly. T...

circa 2 mesi fa | 0

Risposto
Solution of Growth problem
% y0 is a 6 x 1 vector of initial city populations y0 = [100; 300; 500; 125; 100; 200]; % t is the number of years of growth ...

circa 2 mesi fa | 1

| accettato

Risposto
plot with text function
@Francesco, do you want to display the figure without tick marks? ax = axes(figure()); % create axes handle plot(0:10); xl...

circa 2 mesi fa | 0

Risposto
trying to write complex equation with parentheses
Hi @ali When inputting a lengthy equation with multiple parentheses into the programming code, I usually adopt a "divide-and-co...

circa 2 mesi fa | 0

Risposto
Problem facing in solving xdot=Ax system when A is unstable.
Hi @Hemanta Hazarika This is an educated guess. If the unstable state matrix is and the initial values are , then the error be...

circa 2 mesi fa | 0

| accettato

Risposto
Need to fit a curve to some data points
Hi @ISh This Rational function model (Rat11) precisely fits the three data points. format long g %% Data xdat = [ 1 2 100...

circa 2 mesi fa | 0

Risposto
Need to fit a curve to some data points
Here's another candidate. An exponential decay function model should align with the description you provided. Try learning how ...

circa 2 mesi fa | 0

| accettato

Risposto
Can I trust this closed loop response and include it as a final result in my Thesis?
Hi @Ayesha, You can actually verify the result (from Check Bode Characteristics block) with the Bode plot of the Closed-loop Sy...

circa 2 mesi fa | 0

| accettato

Risposto
providing our own Initial cluster centroids to fcm function
Hi @NALLARASU KRISH The ability to provide the initial cluster centers was introduced in R2023b through the fcmOptions() comman...

circa 2 mesi fa | 1

| accettato

Risposto
how to find intersection data between 2 function
Hi @Arif The red line represents the extrapolation up to the vertical line . The main concept here is to determine the equation...

circa 2 mesi fa | 0

| accettato

Risposto
Plotting sine functions using linspace command
It says to plot y as a function of t. You can follow this example to make the plot. You can learn more about linspace() and plo...

2 mesi fa | 1

Risposto
Centigrade to Fahrenheit Converter doesn't work properly
Hey @Laura, there doesn't seem to be any issue with the code when the input() command is placed outside of the C2F() function. ...

2 mesi fa | 0

Risposto
Why does this code give me an error?
Hi @Sadiq Akbar If nonlinear inequality constraints are not available, you can disable them in the code. It appears that the up...

2 mesi fa | 0

Carica altro