Risposto
Solve nonlinear 2nd order ODE numerically
Hi @Lucas You can follow the example here https://www.mathworks.com/help/matlab/ref/ode45.html#bu3uhuk and try something lik...

quasi 4 anni fa | 1

| accettato

Risposto
Does this represent a 3DOF system if not how can I incorporate it as such?
@Keenan, Looks like no error. % Based on X-34 launch specs and parameters % Variable List: % Delta = Time step (s) % t = T...

quasi 4 anni fa | 0

Risposto
How to add a sine wave with a frequency of 50hz and a magnitude of 20 in Simulink
Hi @Pranav Enter the values for the Amplitude and Frequency in the Sine Wave block. In MATLAB, it looks like this: t = 0:0....

quasi 4 anni fa | 1

| accettato

Risposto
Derivative of state is not finite (integrator error)
Hi @Hanne Grov I don't see any division-by-zero issue, unless there are some divisive terms hidden inside the MATLAB Function B...

quasi 4 anni fa | 0

Risposto
How to find out TSP of a graph.
Hi @Ashish Verma You want to plot the graph like this? s = [1 1 1 1 2 2 2 3 3 4]; t = [2 3 4 5 3 4 ...

quasi 4 anni fa | 0

Risposto
I have a differential equation in which the equation contains a function. I don't know how to input and call the function to generate the graph I want. can you help me fix it
Hi Ms. @Latifah Hanum, Equation 6 is a kind of ON/OFF switch that can be constructed using a scaled version of the signum funct...

quasi 4 anni fa | 1

| accettato

Risposto
Generate waveform using basic matlab code
Hi @Abhibrata Adhikary The given waveform is a piecewise smooth function, and it can be constructed as follows: t = 0:0.1:2000...

quasi 4 anni fa | 1

| accettato

Risposto
How we can give input to ANFIS
Hi @Gagandeep Kaur Maybe you can try something like this: IN = [in01(:) in02(:) in03(:) in04(:) in05(:) in06(:) in07(:) in08...

quasi 4 anni fa | 0

Risposto
How to build the sensor subsystem in SIMULINK like this video ?: https://www.youtube.com/watch?v=qhIjIu-Zk10&list=PLn8PRpmsu08pQBgjxYFXSsODEF3Jqmm-y&index=6
Hi @Nam Nguyen I guess the video in the YouTube link is removed. It is not the end of the world if you can't model a sensor sys...

quasi 4 anni fa | 0

Risposto
How to reduce the simulation running time when fuzzy block gets included?
Hi @MALARVILI S I guess that your designed Fuzzy System is a Mamdani-type FIS, and it has too many Rules for the program to eva...

quasi 4 anni fa | 1

| accettato

Risposto
How to combine two fuzzy inference system in Simulink?
Hi @Swathi T I don't know how your Rules and FIS work, but you can try combining both FIS blocks in the additive way: Also, ...

quasi 4 anni fa | 1

| accettato

Risposto
How to Code Math Equation in Matlab.
Hi @bob Do you wish to learn only the specific code for solving the Heat Equation? Or, do you want to learn MATLAB from scratc...

quasi 4 anni fa | 1

| accettato

Risposto
i have unstable second order system and trying to make it follow square wave using reinforcement learning but the agent doesn't converge
@farouk I don't know how many iterations your RL will take to stabilize the system and track the square wave. But you can proba...

quasi 4 anni fa | 0

Risposto
Trying to code a state space modelling for thrust vector control of a rocket. I keep getting Error using plot, Invalid Data Argument, please help
@Chinmay Kundapur, alternatively, you can directly write the color code straightaway. Iyy = 2.186e8; m = 38901; ...

quasi 4 anni fa | 0

Risposto
how to draw graphs for optimal control
Hi @mallela ankamma rao Do expect plots like these? test = -1; % Test variable; as long as variable is negative ...th...

quasi 4 anni fa | 0

Risposto
How to solve system of Coupled nonlinear 2nd order ordinary differential equation in MATLAB?
@Sandip, Rearrange the equations in these forms and then substitute Eq. (3) into Eqs. (1) and (2). Try settle the math ...

quasi 4 anni fa | 0

Risposto
How do I solve this system of equations using matlab
Hi @Ryan Boulden Unable to solve because there are 8 variables, but only 4 equations. , , , , , , ,

quasi 4 anni fa | 0

Risposto
Multiple degree of freedom spring mass damper system using ode 45
Hi @Ryan Boulden The simulation runs. t = linspace(0, 10, 1001); ic = [0, 1, -1, 0]; [t, x] = ode45(@(t, x) odefun(t, x), t...

quasi 4 anni fa | 0

Risposto
PID controller and PID tuner for a SIMO system
Hi @Mikel Your system is . If you algebraically design as , then the closed-loop becomes . Since you didn't specify the...

quasi 4 anni fa | 2

| accettato

Risposto
Alternative to the Differential block
Hi @Joe Jones You can try the Robust Exact Differentiator Block: http://www.reichhartinger.at/

quasi 4 anni fa | 0

Risposto
plotting predator-prey model and its phase portrait
Hi @Krtin Kala If you want to plot the phase portrait, you can try using the numerical approach. % Parameters A = 2/3; B = 4...

quasi 4 anni fa | 2

| accettato

Risposto
How to show plot in interval of 3?
Hi @Ara Here is an example to use ax.XTick: x = linspace(0, 24, 2401); y = 30*(sin(2*pi/24*x) + 1); plot(x, y, 'linewidth', ...

quasi 4 anni fa | 2

| accettato

Risposto
How I can give condition & plot the solution of this differential equation. . . . . . . Please Guide
Hi @DEEPAK KARARWAL Giiven the parameters, it seems that if you select initial values and , the boundary values are satisfied....

quasi 4 anni fa | 0

Risposto
Can anyone help me in getting this graph using the attached equation (16).
Hi @Nudrat Sufiyan Guess you need to type out this equation and insert the parameters Example only, not true equation. ...

quasi 4 anni fa | 2

| accettato

Risposto
Can Someone help me with this Size error? I am working on Fuzzy Logic controller of Fuel cell and when i place Fuzzy Logic on Voltage it gives me this error
@Muzammil Naeem Update 26 Jul 2022: There are two inputs going into your FINALFANFUZZY.fis However, you connect the inputs...

quasi 4 anni fa | 0

Risposto
State and Output Function of a nonlinear dynamics to use is NMPC
Hi @seyyed Erfan ghoreyshipour The axial-flow pump system is governed by this equation: . So, the State variable in this equa...

quasi 4 anni fa | 0

| accettato

Risposto
How to Get Second Derivative in ode45 solver?
Hi @ercan duzgun You don't need to..., because you can see the elephant in the room (not sure if this is the correct metaphoric...

quasi 4 anni fa | 2

| accettato

Risposto
How can I numerically solve an equation with a sum of exponentials with parameters to the exponent?
Hi @IRENE TRENTA Let's test if this numerical method is simple enough or not. This method requires an initial guess. fcn1 = @(...

quasi 4 anni fa | 2

| accettato

Risposto
How to use switch case with PID controller?
Hi @nisha bhatt I think the switch looks like this: Since there are two 's, I guess you will need two PIDs.

quasi 4 anni fa | 0

Risposto
how can i build logic in simulink model when statement is if output >=1 then the input should change its value to 0. by using feedback control loop system?
Hi @Rakesh Singare I see the piecewise function as the mathematical equivalent to the logic. For example: x = linspace(-3, 3, ...

quasi 4 anni fa | 0

Carica altro