Risposto
Determine the reward value to stop training in RL agent
Hi @Haitham M. There is an option to set the StopTrainingValue.

oltre 3 anni fa | 0

Risposto
State Variable of the Memristor
Hi @vani If you are talking about modeling the memristor and running a simulation in MATLAB, then I think you can use ode45(). ...

oltre 3 anni fa | 1

| accettato

Risposto
Problem with minimizing a LQR problem with Genetic Algorithm
Hi @gilad shaul To find through , you need to expand the Continuous-time Algebraic Riccati Equation (CARE) in terms of , and t...

oltre 3 anni fa | 4

Risposto
Calculating Value of Inverse function
Hi @Johan Ahlberg How about this? syms x f(x) = (x^2)/(1 + sqrt(x)); g = finverse(f) double(g(2))

oltre 3 anni fa | 1

Risposto
the curve in matlab
Hi @randino Not sure what you really want. Perhaps you want to get the "Validation" plot using the plotperform() command? x ...

oltre 3 anni fa | 0

Risposto
How to create a transfer function with no simplification ?
Hi @Dimosthenis Leonidas, The zpk() command shows the zero/pole/gain model. (), , and () are not in pole forms. If the native ...

oltre 3 anni fa | 2

Risposto
Problem with minimizing a LQR problem with Genetic Algorithm
Hi @gilad shaul Minimizing the norm(P) does not work because there are infinite K that can make A'*P + P*A - K'*R*K + Q exactly...

oltre 3 anni fa | 3

| accettato

Risposto
Hello, I am trying to numerically solve the following differential equation but unable to get a solution.
Hi @David M, If you are looking for a numerical solution, then the ode45() command is used. No = 1; So = 0.9999; ga...

oltre 3 anni fa | 0

Risposto
cantilever beam matlab equation solve
Hi @영범 곽 The function seems to have no real roots. Please check the trigonometric function again if something is missed. k = 2...

oltre 3 anni fa | 1

| accettato

Risposto
How do you appropriately integrate time steps to a while loop program for a single stage model rocket?
Your code runs, but I suspect that something is wrong in your Rocket Model. Does the line return the pitch angle in degree or r...

oltre 3 anni fa | 1

| accettato

Risposto
Unrecognized function or variable
Hi @Aysel Alimirzayeva It requires Robust Control Toolbox, the function is introduced in R2020a. Since yours is R2019b, then I ...

oltre 3 anni fa | 1

| accettato

Risposto
MatLab codes for the used by forensics to determine the exact time of death.
Hi @Evalistus Simon The equation derived from Newton's Law of Cooling is given by The ambient temperature is 70°F. Suppose t...

oltre 3 anni fa | 2

Risposto
Write MATLAB code to solve the following the minimum problem.
Hi @Chihiro Ogino You are advised to do some reading on the PSO algorithm to understand the code. % Step 1: Initialize PSO Xm...

oltre 3 anni fa | 1

| accettato

Risposto
L’Hospital’s rule
Probably more clearly for you if you insert the expression directly syms x limit((x + 2)/(x^2 + 3*x + 2), -2)

oltre 3 anni fa | 1

Risposto
Help me drawing graph
Hi @현범 장 Here there is fimplicit(@(x,y) x + y - 5)

oltre 3 anni fa | 1

| accettato

Risposto
ode45 giving incorrect result
Hi @Joseph Billips There were errors in your code when you attempt to describe the dynamics of the pendulum, which is a 2nd-ord...

oltre 3 anni fa | 0

Risposto
Modelling ODE in Simulink when input multiplied by ouput
Hi @aizo zeo The given ODE cannot be modeled in the Laplace transform sense because it is a non-affine system due to the produc...

oltre 3 anni fa | 0

Risposto
A nd B are defined, but i can't get past this line: Csum = fuzarith(x,A,B,'sum'); WHy?
Hi @Michael Check if this is what you want. The Gaussian functions on your original legend were incorrect. The fuzarith() funct...

oltre 3 anni fa | 0

Risposto
3x-y+4=0 how to solve this equation in matlab
Hi @Adam The given equation can be rewritten in this familiar line equation form You can substitute any real value into ...

oltre 3 anni fa | 0

Risposto
Why a manually made PID controller in Simulink will show a different value when compared to the default PID controller Simulink black with both having the same Kp,Ki and Kd?
Hi @Ian It's because the PID block in Simulink implements a PID controller in this form: where a first-order transfer functi...

oltre 3 anni fa | 2

| accettato

Risposto
How to plot a polynomial?
Hi @Sarah Elena Aiko Johnson Should try like this: xi = linspace(-2, 8, 101); fend = - 2 + (6*xi) - 4*(xi.^2) + (0.5*(xi.^3))...

oltre 3 anni fa | 1

| accettato

Risposto
Piece-wise Functions
Let's try something very basic. t1 = -5:0.1:0; t2 = 0:0.1:10; t3 = 10:0.1:20; t4 = 20:0.1:30; t5 = 30:0.1:50; % Segment...

oltre 3 anni fa | 0

Risposto
How to solve ODE on array variables
Hi @Telema Harry Perhaps you can do this way: tspan = [0 0.1]; x0 = [2 1.5 1 0.5]; [t, x] = ode45(@odefcn, tspan, x0); ...

oltre 3 anni fa | 1

| accettato

Risposto
help create a positive sin wave
Sounds intriguing. Are you looking for the half-wave rectified sine wave? x = -2:0.01:2; y1 = sin(pi*x); ...

oltre 3 anni fa | 0

Risposto
Problem in creating stimulink for a tranfer function
Hi @Sukumar Kishanthan You can try this trick, using the Descriptor State-Space block to create the "equivalent" improper (non-...

oltre 3 anni fa | 0

Risposto
How to get fuzzy output values instead of crisp output values?
Hi @Hung The crisp out does not have an equivalent scalar fuzzy value. So, I think you probably mean finding the Aggregated out...

oltre 3 anni fa | 2

| accettato

Risposto
can not use PID tuner in simulink
Hi @Cheng an Ku, @Foo Yun Hong, @Jhayo Since the Control System Toolbox is available, I think the workaround is to first work o...

quasi 4 anni fa | 2

Risposto
PI Controller Tuning for totem pole Pfc
Hi @Barath Narayanan I forgot to ask the PI values you obtained from sisotool. Please check if the performance requirements are...

quasi 4 anni fa | 1

| accettato

Risposto
Calculate the area of geometry
Hi @Minh If you know the point coordinates of the geometry, perhaps you can explore the area() function. x = [0 2 1.5]; y = [...

quasi 4 anni fa | 0

Risposto
Finding the function of the supremum
Hi @Aysel Alimirzayeva I'm not sure if the following is what you want. But this 1st-order transfer function (taking the Laplace...

quasi 4 anni fa | 1

Carica altro