답변 있음
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...

3년 초과 전 | 1

| 수락됨

답변 있음
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'...

3년 초과 전 | 2

| 수락됨

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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. ...

3년 초과 전 | 1

| 수락됨

답변 있음
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")

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 1

| 수락됨

답변 있음
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...

3년 초과 전 | 1

| 수락됨

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 1

| 수락됨

답변 있음
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 ...

3년 초과 전 | 1

| 수락됨

답변 있음
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 ...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 2

| 수락됨

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

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

답변 있음
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.

3년 초과 전 | 1

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 2

| 수락됨

답변 있음
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...

3년 초과 전 | 2

답변 있음
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...

3년 초과 전 | 0

답변 있음
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]...

3년 초과 전 | 2

| 수락됨

답변 있음
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) ...

3년 초과 전 | 0

답변 있음
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 ...

3년 초과 전 | 2

| 수락됨

더 보기