Réponse apportée
Error when simulating an adaptive control system with an inverse reference model: Derivative is not finite.
Hi @Anton There is no obvious division-by-zero component. So, the system must be unstable, which causes the output to grow out ...

plus de 3 ans il y a | 3

| A accepté

Réponse apportée
Control vehicles velocity according to speed signs
@Purvil Patel, Here is th basic idea. Even though some speed limit signs maybe out of the sensor's range, the controller should...

plus de 3 ans il y a | 0

Réponse apportée
Plot the function sin (x) on the interval [0, 5]. Now generate the discrete time signal from the sine function with 6 discrete values. Using this fundamental period, generate
Hi @Woods, follow this example. fcn = @(x) 2*x - x.*abs(x); fplot(fcn, [-1 1]) grid on title({'Plot of $y = 2 x - x |x|$ ove...

plus de 3 ans il y a | 0

Réponse apportée
Solving coupled differential equations
Hi @Jon I'm unsure if the system has a general analytical solution. In Pure Math, from the properties of a stable 2nd-order OD...

plus de 3 ans il y a | 0

Réponse apportée
Warning: No rules fired for Output 1. Defuzzified output value set to its mean range value 0.5.
Hi @Verónica Valencia Valencia I can only explain why the "Warning" appears. Once you understand, try fixing the underlying roo...

plus de 3 ans il y a | 0

Réponse apportée
How to incorporate equations in the connect function for control design?
Hi @Jiten Parmar Thanks for clarifying that. For more info, you can find out how use 'connect' here. But I have seen people usi...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
ode45 taking too long to solve set of ODEs.
Hi @H, A simple test shows that the code works with ode15s() solver, and it produces results. Take note: If the initial value...

plus de 3 ans il y a | 0

Réponse apportée
Error using FuzzyInferenceSystem/addRule Vector description: Rule length must be m+n+2, where m is the number of inputs and n is the number of outputs.
Hi @Verónica Valencia Valencia Change this line fis = mamfis('Name', 'myfis', 'NumInputs', 2, 'NumOutputs', 1); to fis = mam...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to numerically solve system of equations and differential equations simultaneously?
Hi @I CHUN LIN It seems that simple Substitution-and-Elimination method produces the solution . Thus, the linear ODE becomes...

plus de 3 ans il y a | 2

Réponse apportée
Trouble plotting Second Order Equation
Hi @Nina It appears that you tried to simulate the undamped pendulum-like ODE with multiple initial angles. If I'm correct, th...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
how to show only selective legend in the graph
Hi @AL On the basic, you can do this: x = linspace(-pi, pi, 3601); y1 = sin(x); y2 = cos(x); y3 = 1*(x); plot(x, [y1' y2'...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
Unable to solve stiff differential equation
Hi @AJMIT KUMAR, It appears that the system is inherently unstable for . If you simulate the system for a longer time, then the...

plus de 3 ans il y a | 0

Réponse apportée
plotting transfer function / time domain version
Hi @Miller If you want to use the step(sys) function, then the sys must be a SISO or MIMO Linear System Model. In your case, i...

plus de 3 ans il y a | 0

Réponse apportée
Matlab Spring Damper models of Human Body Model
Hi @Phanindra Reddy Ravi There are some commercial realistic humans’ skeletal and muscle models developed by BoB Biomechanics. ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Train a Siamese Network to Compare Images with image size [227 227 3]
You should be able to find this line in the tutorial: imageInputLayer([105 105 1],Normalization="none")

plus de 3 ans il y a | 0

Réponse apportée
Thermodynamic engine cycle and gas exchange simulation in ICE Engine
You can create the simulation model in MATLAB and Simulink, if you understand the mathematical model, or knowing how to make use...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Fuzzy Logic Toolbox - addRule throws "Do not use a rule keyword as a membership function name" error
Hi @Kartik Sahajpal Change the name of the fuzzy variable to "flowrate" (to eliminate the space). fis_size = mamfis; % Inpu...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Different Bode Plots from Same Function
Hi @Prithvi Nathan It seems that they are not exactly the same from the mathematical perspective. format long g estimated_n...

plus de 3 ans il y a | 0

Réponse apportée
How to generate a golden ratio graph in simulink
Hi @Ragavendra Joshi 18 Apr 2023 (Update): Here are the basic blocks in Simulink that you can use to create the Golden Ratio Sp...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
build an augmented PID control model for a DC servo motor in Simulink
Hi @Tony Cheng I'm unfamiliar with your system, but the Augmented PID Control Scheme should look like the following diagram in ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 2

| A accepté

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

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Charger plus