Risposto
Error in using ode45 for solution of nonlinear system of three equations which are interlinked to each other
Hi @FAIZ UL HASSAN Try this: % Define the time-varying Disturbance D = @(t) sin(pi/10*t); % Define the scalar parameters ...

circa 2 mesi fa | 0

Risposto
how to add a state space representation with identifiable parameters into a Matlab function or a any block?
Hi @kawsar I'm unfamiliar with your system (probably something to do with the state of charge of an energy storage system). Ho...

circa 2 mesi fa | 0

Risposto
What is the difference between the RMSE calculations?
Hi @alvaro fernandes If you have the data, then you can compute the root-mean-square error between the data arrays. I don't ha...

circa 2 mesi fa | 0

Risposto
Why I am getting negative values in my low pass filter results?
Hi @Zahra Since you asked, I'm guessing the input values are negative. t = linspace(0, 10, 1001); lpf = tf(1, [1 1]) % L...

circa 2 mesi fa | 0

Risposto
How to estimate data plots as an exponential with a horizontal Asymptote? y=Ax^B+C where B<1
Hi @Dominic Bruce Are you looking for something like this? x = [0.5 1 2 3]; y = [292.4 264.8 324 305; 182.2 175.6 202.4 199...

circa 2 mesi fa | 1

| accettato

Risposto
Torque controlled BLDC motor
Hi @Vrinda V Nair Sinusoidal back-EMF motors can experience reduced torque ripple by utilizing sinusoidal currents, such as tho...

2 mesi fa | 0

Risposto
Build a MATLAB model to predict the compressive strength of concrete based on its composition and age.
Hi @David Coombs Usually, if you're unsure of how to begin writing MATLAB code, people tend to suggest you to start with the fr...

2 mesi fa | 0

Risposto
Determining optimal coefficients for Horwitz matrix or characteristic equation
Hi @mohammadreza Edit: It appears that and can make the matrix Hurwitz. However, the optimal coefficients are subjective, bec...

2 mesi fa | 0

Risposto
How to add disturbances into the model predictive control as an input?
Hi @jana nassereddine The matrix expression is equivalent to where is the input vector. If you want to anticipate the meas...

2 mesi fa | 0

Risposto
making sqrt file without using sqrt function
Hi @zot Edit: Since you didn't provide more info, then I'd suggest Newton–Raphson method. From the definition it can be rea...

2 mesi fa | 0

Risposto
Integrator error: Integrator in Simulink 2021a, I input a negative nymber but the output is a positive integral value
The integrator could be integrating from an initial positive value.

2 mesi fa | 1

Risposto
Why does my ode45 function not run?
Hi @Sneh That's because the response of one of the states, exploded. This it cannot run to the end sec. % t = 0:0.01:(2*pi*4...

2 mesi fa | 0

Risposto
Nonlinear iteration error in Simulink model
Hi @Andrew BArney The message does not imply an algebraic loop error, but it suggests that one or more system states are approa...

2 mesi fa | 0

Risposto
Creating fuzzy rules with rule editor in matlab online
Hi @Hazal Eylül If you are designing the fuzzy inference system (FIS) manually, and there are 6 inputs with 2 MFs for each inpu...

2 mesi fa | 1

| accettato

Risposto
polynomial curve fitting error
Hi @Sumera Yamin If, for some reasons, you like to name your script "polyfit.m", try adding a prefix to make the filename uniqu...

2 mesi fa | 1

Risposto
I am not able to solve equilibria for coupled non linear ode system
@Ruma Dutta, can you fit your ODE in this example (double integrator)? If there are more states, then duplicate the lines as nec...

2 mesi fa | 0

Risposto
Solving ODE with piecewise driving force
Hi @Moosejr In this case, you can use the deval() function. I also fixed the conditional statement in the ODE. tspan = [0 5]...

2 mesi fa | 1

| accettato

Risposto
Plot transfer function with input
Hi @Kaizi Here are two simplest ways to do it: Method 1: Vi = 3; % input G = tf([1.8 2.4 0], [0.72 1.8 1]) step(Vi*G) ...

2 mesi fa | 0

Risposto
Help on solving nonlinear coupled equations with Runge-Kutta approach
Hi @Jake I am unfamiliar with your equations of motion. But you can check and compare if you get similar plots below as solved ...

2 mesi fa | 1

| accettato

Risposto
Using ode4 solver in a sliding mode controller
Hi @Mikel In MATLAB, I think these are the expexted results ,where the nonlinear state estimators and are able to rapidly tra...

2 mesi fa | 0

| accettato

Risposto
state feedback control and observer
Hi @영탁 한 Since no requirement is provided, we follow the design criteria given in the example: Settling time less than 2 secon...

2 mesi fa | 0

Risposto
Help me convert this Equation
Hi @shammas mohamed Edit: There are two correction in the equation. Thanks @Walter Roberson for pointing out. % Parameters Co...

2 mesi fa | 1

Risposto
What is wrong with my code, my equation is vdv/dy=-G*M/(y+R)^2 ?
Hi @Laura This is a simple example of using the solver's syntax that you can find in the ode45() documentation. If there are un...

2 mesi fa | 0

Risposto
Is it possible to create a transfer function in Matlab with unknown constants
Hi @Dario Not exactly sure what you meant by the unknown constants of and . Equivalent state-space model If they are tunabl...

2 mesi fa | 0

Risposto
I want to use a Lateral Controller like Stanley or PID for my automated driving car with using Gps Coordinates.
Hi @Ihsan A path planner function using the A* algorithm is available in the Navigation Toolbox; the function is called planner...

2 mesi fa | 0

Risposto
How can I simulate a spring mass damping system without singularity error in Simulink?
Hi @Abdurrahman Faig From the Simulink model, the dynamics can be reconstructed as and then rearranged to . This nonlin...

2 mesi fa | 0

Risposto
Genetic Algorithm output is different than manual calculation
Hi @Kalyan Dash Look at the angular frequency of the sinusoidal component, you will see it is a high-frequency signal. In your...

2 mesi fa | 1

| accettato

Risposto
Wind turbine model block, cp(lambda, beta) function syntax error
Hi @Rajagurunathan P The error clearly tells you that the math expression has a syntax error, which is a common error when prog...

3 mesi fa | 0

Risposto
Matlab 'pidtune()' function Algorithm
Hi @Ann-Christin Schlupek The PID Tuning Algorithm is described on this page. In slightly technical terms, pidtune() contains ...

3 mesi fa | 0

Risposto
how to model stairs in simscape multibody?
Hi @Nayla Are you looking some kind of "staircase-shaped function" that is generated by a mathematical function? Or, you are l...

3 mesi fa | 0

| accettato

Carica altro