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

3 years ago | 3

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 2

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

3 years ago | 1

| accepted

Answered
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)

3 years ago | 1

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 2

| accepted

Answered
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))...

3 years ago | 1

| accepted

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

3 years ago | 0

Answered
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); ...

3 years ago | 1

| accepted

Answered
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); ...

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 2

| accepted

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

3 years ago | 2

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

3 years ago | 1

| accepted

Answered
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 = [...

3 years ago | 0

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

3 years ago | 1

Answered
Simple PID Controller with Simulink
Hi @Jeff Dillon Not a VTOL person, but from the free-body diagram, Newton's 2nd Law can be applied with the basic assumptions o...

3 years ago | 1

| accepted

Answered
How to plot this function?
@Juan Vicente Probably the plot looks like this: syms x y fimplicit(log(abs(y/(y + 1))) == -1/x, [-5 5 -10 10])

3 years ago | 1

| accepted

Answered
Rounding towards zero or from zero
Hi @Nick Austinos Does this work for you? x = 3.6; y = floor(x)

3 years ago | 1

Answered
Throttle Command to Torque Command
Hi @Tamas Can you possibly find out the formula or relationship between the Throttle_position and the Torque_command? If you d...

3 years ago | 0

Answered
Matlab code for solving nonlinear equations
Since you generally asked for any three nonlinear equations, I guess you just need to constrain the solver/algorithm to take onl...

3 years ago | 1

Answered
Find the minimum of a function
Hi @Melika Eft The constrained optimization problem probably can be formulated like this: fun = @(x) x(1)^2 + x(2)^2; x0 = [...

3 years ago | 2

| accepted

Load more