Answered
Input variable "trimf" does not exist.
Hi @Ceferino Some syntax issues. They are fixed as shown below: fis = mamfis; fis = addInput(fis, [0 100], "Name", "input_tem...

3 years ago | 0

| accepted

Answered
Incorrect Dimensions for matrix multiplication
Ld=(0:0.001:5); % <-- array is first defined here, but does not appear in Rtf L=0.007; Ta=25; h=375; Kf=175; Kd=0.032; ...

3 years ago | 0

Answered
How I can separate a matrix that is not positive definite, into two matrices?
Hi @hossen hassanzadth Your expression "" appears to resemble an attempt at performing a Cholesky decomposition. However, it's ...

3 years ago | 1

| accepted

Answered
How I can plot input signal in ode45
Hi @hossen hassanzadth Your initial query has already been addressed. To achieve step profile tracking using your designed gain...

3 years ago | 1

Answered
How can we solve time dependent non linear equations?
Hi @Shadab Ali Do you expect complex-valued solutions? x0 = [3i 3i 4]; % there are 7 other solutions % x0 = [ ...

3 years ago | 0

Answered
How to replace pi by a linear quadratic regulator inside the v/f scalar method to control speed of an induction motor?
@Luc RABE: Is this feasible when designing LQR regulator? It depends on whether the transfer function represents a first-order ...

3 years ago | 1

| accepted

Answered
How can I train ANFIS using Particle Swarm Optimization algorithm ?
Hi @Ahmad For the new data "heart_dataset.csv" with 13 inputs to 1 output, the Subtractive Clustering method will generate 209 ...

3 years ago | 0

Answered
I am getting different outputs when using lsim vs ode45 when solving second order coupled differential equations
Hi @Ethan Nobre The reason for the discrepancy between the 'lsim()' solution and the 'ode45()' solution is due to the differenc...

3 years ago | 0

| accepted

Answered
How can I train ANFIS using Particle Swarm Optimization algorithm ?
Hi @Ahmad The output (target) of the patient data constitutes a Boolean function, yielding values from a two-element set {0, 1}...

3 years ago | 3

| accepted

Answered
solving ODE by analytical & numerical solution
You are welcome, @승언 김. If you find the solutions helpful, please consider clicking 'Accept' ✔ on the answer and voting 👍 for it...

3 years ago | 1

Answered
solving ODE by analytical & numerical solution
Hi @승언 김 There are a few approaches to solving linear differential equations without the Control System Toolbox. Here is one of...

3 years ago | 1

| accepted

Answered
What is the problem with my code because i would like to get the same result as in the picture. Can you help me?
Hi @Luc RABE From the image you provided, the sampling time is definitely much shorter. I picked Ts = 0.02. Check the book. I b...

3 years ago | 2

| accepted

Answered
Obtain natural frequencies of a structural model.
Hi @Jorge Garcia Garcia Since the natural frequencies are related to the eigenvalues of the structural system, I believe you ca...

3 years ago | 0

| accepted

Answered
iam trying to solve a system of differential equations of car model using ode45 but I am always get an error
Hi @Mostafa Salah, The code is quite messy, with numerous unformatted local functions scattered throughout, making it visually ...

3 years ago | 0

| accepted

Answered
How do I simulate mini solar panels in series on MATLAB?
Hi @Aleena For beginners, it is usually recommended to derive the mathematical model of a typical system from some governing la...

3 years ago | 1

Answered
Hey there, I need some help with this error. Would anyone be willing to provide guidance?
HI @Danikha Shyken For a fixed-step solver, you can modify the settings in the Solver tab of the Configuration Parameters dialo...

3 years ago | 0

| accepted

Answered
Need Help Understanding the 'oceanwave()' Function
HI @Vaishnavi P I regret to inform you that I am not an oceanographer. From the context, it appears that you are most likely a ...

3 years ago | 1

| accepted

Answered
I need to put this block diagram in MATLAB (not in Simulink) and I do not know how to do it
Hi @Carlos Puente When utilizing the syntax s = tf('s') to establish a special variable 's', you gain the ability to directly f...

3 years ago | 0

Answered
un modelo de control de robot scara no compila en simulink, se queda parado en 1%, ¿como puedo solucionarlo?
Hola @Marcel Lolita Hoyos Muñoz Sospecho que ha ocurrido una singularidad en el robot SCARA al 1% del tiempo de simulación. La ...

3 years ago | 0

Answered
How do I alter the curve of my plot
g = 9.81; v = 85; i_h = 0:0.25:95; h_f = 0; % Equations: t being time and d being distance t = sqrt(2*i_h\g); d = (85*sqr...

3 years ago | 0

Answered
How To solve this equation?
Hi @Alif Here is the numerical approach. format long g x = 1:1000; y = (nthroot(5*x + 2, 5))./x; S = sum(y)

3 years ago | 1

Answered
How to plot the following function?
Hi @Reema Noor You can find some good examples related to plotting some functions in these links: https://www.mathworks.com/he...

3 years ago | 0

Answered
Tuning MISO PI Controller for SIMO System
Hi @Hannes I've examined the Simulink model depicting the unicycle dynamics that is somewhat vaguely displayed under the block ...

3 years ago | 0

Answered
Matlab cannot find solution
Hi @Xinjie Qian If the solve() function is used, then it says "Unable to find explicit soluion." syms r m n eqn = ((2*r^4-8...

3 years ago | 0

Answered
Solve for y in function z = f(x, y)
Hi @Tim Fulcher If the values for x and z are known, then you can numerically solve for y. syms y x = 1; z = 0; p00 = 1...

3 years ago | 1

| accepted

Answered
HOW TO: Using each step result in subsequent step during integration via ODE
Hi @Presley From your provided formula, both and can be directly computed from the ode45 solution vector x. Could you please ...

3 years ago | 0

Answered
Error occurs when creating Pole-Zero Map using pzmap()
Hi @Muhammad Aboawah I wanted to bring to your attention that, based on the documentation, it appears that the pidTuner() funct...

3 years ago | 1

Answered
Please answer all. it is related to Numerical linear Algebra
Hi @Kashk In reference to your posted exercise concerning the definition of MATLAB functions, I'd like to provide a straightfor...

3 years ago | 1

Answered
How can constraint varaibles in my fcn simulink block?
Hi @Dario Di Francesco, The analysis shows that the constraint on control action is unnecessary. In Case 1, the control-free sy...

3 years ago | 1

| accepted

Answered
Error in cumtrapz. Input arguments to function include colon operator. To input the colon character, use ':' instead.
Hi @Ivan Perhaps you can learn from this example to compute the cumulative integral of univariate function, . x = linspace(-4,...

3 years ago | 1

Load more