Answered
reinforcement learning will suddenly stop during the training process
HI @嘻嘻 The most common issue that the error message you've encountered in Simulink indicates that there is a "division by zero"...

2 years ago | 0

| accepted

Answered
ODE45 Output size
Hi @Sneh I think you want to compare the numerical solutions with the analytical solutions. %% Method 1: Numerical Solutions ...

2 years ago | 0

Answered
How do I modify the ball on a beam system to accommodate for Friction?
Hi @Kez If Fr is the friction, and you know the friction formula, then you inject it in this differential equation. I don't ...

2 years ago | 0

| accepted

Answered
Fisher's z transform with atanh() to rho goes to infinity
Hi @Alba Peris, If you make sure that rho stays in the range , then will be finite. rho = -0.999:0.001:0.999; y = atanh(rho...

2 years ago | 1

| accepted

Answered
how to make input to the system time variable?
Okay @Min Khant, the problem is incomplete. However, you can learn by yourself using this example for tracking the desired tra...

2 years ago | 1

| accepted

Answered
GA Algorithm for PID tuning
Hi @SURBHI GOEL Sometimes you can let GA randomly search during the initial run to observe if the performance requirements are ...

2 years ago | 0

Answered
How to keep track of accumulated error for integral term in a PID controller function?
Hi @David This simple example shows how to obtain the integral error signal by adding an auxiliary state in the my_Dynamics() f...

2 years ago | 1

| accepted

Answered
how to done this simulink , help me to do this i have to make aircraf with simulink
Hi @Nguyen Viet Hoang If you are not familiar with Simulink blocks and need to model the aircraft's longitudinal dynamics in Si...

2 years ago | 1

| accepted

Answered
How to apply PSO FOR REGRESSION?.
Hi @Ahmed Eltantawi it is technically possible to use PSO for predicting the output, although not by directly applying PSO. The...

2 years ago | 0

| accepted

Answered
Out of memory - dsolve 3rd order system
Hi @Chris G. If you're using the ode45 solver to find the state responses, here is how they look. Indeed, as mentioned by @Walt...

2 years ago | 0

Answered
how I can fix sample time in ode45
Hi @hossen hassanzadth Are you looking for something like this? T = 0.5; tspan = 0:T:10; y0 = [0.2,0.3]; [t, y]...

2 years ago | 0

| accepted

Answered
Damped Oscillation Equation Fitting
Hi @Haardhik You can probably estimate the value of omega (angular frequency) by counting the number of zero-crossing events. I...

2 years ago | 0

Answered
How to plot the Taylor Series expansion of sin²(x) in MATLAB
Hi @Abdulazziz I believe you when you say you don't know how to plot this in MATLAB. However, I don't understand the logical re...

2 years ago | 0

Answered
how can I set the decimal digits of all coefficients at one time when outputting a polynomial f?
a = 5.327416; b = 3.660092; c = 1.5799301; fprintf('f(x) = %.3f*x^2 + %.3f*x + %.3f', a, b, c)

2 years ago | 0

Answered
Unable to use Control System Designer
Hi @Oz Etkin Please post the full code because the error message appears to have something to do with logical operations involv...

2 years ago | 0

Answered
Where is the tle file that contain data satellite (eccentricOrbitSatellite.tle) ?
Hello @Eman Adel The file "eccentricOrbitSatellite.tle" can be found in the folder named "orbitdata" if you have the Example fi...

2 years ago | 0

Answered
how do I set membership function to this ANFIS?
Hi @Ahmad In ANFIS training, only the Grid Partitioning method provides the flexibility to assign a fixed number of membership ...

2 years ago | 1

| accepted

Answered
using mean function to return a singular value of a row vector
Hi Jack, It could be the get_SoilMoisture(Object) function is nested in a for-loop that performs 3 iterations in the Main Scr...

2 years ago | 0

| accepted

Answered
Calculated 100% rise time value different than matlab value
Hi @Caleb Since and , then % Parameters theta = 1.23; % rad wd = 1.97; % rad % Rise t...

2 years ago | 0

| accepted

Answered
Sinc Interpolation without using predefined function
Hi @Radu-Andrei Not an interpolation expert, but I believe your code didn't work correctly because the sampling frequency (at 1...

2 years ago | 0

| accepted

Answered
Piecewise function in Simulink
Hi @Yamana Uno Since the piecewise signal is generated through an If-Else conditional statement in the coding mode, @Ishaan's a...

2 years ago | 0

Answered
Show matrix is not invertible.
Hi @L I believe this is an exercise in the Linear Algebra course. You have likely learned how to find the determinant of a matr...

3 years ago | 0

Answered
how can i plot bifurcation diagram of fractional logistic map?
The logistic map is given by and the code for the graphical representation of the bifurcation may be converted from the Pytho...

3 years ago | 0

Answered
F values come out as Infinity using the anovan function
Hi @ki o kim In this example, you'll notice that the F-statistic is calculated as the ratio of the mean squared errors: (7.875/...

3 years ago | 0

Answered
matlab gives my answer inverted
Hi @Maria Cinthia It sounds like you're looking for a state-space realization in the Controllable Canonical Form. If that's the...

3 years ago | 0

Answered
Find the integral of ;
Hello Sir @Newton I feel honored to have the opportunity to solve this integral problem for you in the modern computational era...

3 years ago | 1

Answered
How to simulate the state-space model
Hi @Hein zaw In MATLAB, you can use the ODE solver approach. If the system is LTI and you have the Control System Toolbox insta...

3 years ago | 0

| accepted

Answered
How to find mean of sin(t)/t with t [0, pi]?
Hi @Han Your function does not have the variable . But I guess that your teacher probably wants you to cleverly apply the Lagr...

3 years ago | 0

Answered
Control Algorithm for a Plant with Hysteresis-Shifted S-Curve
Hi @Achraf Without knowledge about the physical nature of the dynamics, your questions can only be adequately answered through ...

3 years ago | 0

Answered
how to define mpc object's plant as state space ?
Hi @AMAN There was an incorrect syntax issue with mpc(), but it is now fixed below: % Define system matrices (Ad, Bd, Cd, Dd) ...

3 years ago | 0

| accepted

Load more