Risposto
Facing difficulty to resolve code problem
Hi @Shakeel Ahmed I recommend using the numerical approach directly when the state equations are available, as in your case. It...

oltre 2 anni fa | 0

Risposto
Matlab step() from Simulink dataset
Hi @Oleg Some information is unavailable in your code, but I managed to guess and reproduce the result of the computed LQR gain...

oltre 2 anni fa | 0

Risposto
Design and Simulation of optimized Anti-surge Adaptive control system for Centrifugal Compressor
Hi @MADUKA CHIKA To simulate the dynamics and control of the Centrifugal compressor system in MATLAB, you must adhere to a syst...

oltre 2 anni fa | 0

Risposto
Simulation and Modelling of a compressor
Hi @MADUKA CHIKA There won't be any detailed technical answer for this general question. However, based on your image, we can a...

oltre 2 anni fa | 0

Risposto
My code fails to get value for M (M and K should be very small numbers, close to zero I believe).
Hi @Sean Rotmansky You have one equation, 'g', but you are attempting to solve for two unknown variables, M and K. The system i...

oltre 2 anni fa | 0

Risposto
Plotting the derivative of infected population SI model
Hi @Amal Matrafi You can use deval() to obtain the first derivative. Alternatively, as suggested by @Star Strider, you can also...

oltre 2 anni fa | 0

Risposto
How to make a phase diagram plot?
Hi @Wing Nam If the analytical solution exists, then you can solve the ODE symbolically using the dsolve() command. From the re...

oltre 2 anni fa | 0

Risposto
step response comparison of linear and non linear model
Hi @kruthika u To compare the results, you need to solve the linear system and generate the linear outputs, just as you would f...

oltre 2 anni fa | 0

Risposto
how can I keep track of last n sec of data at each time step in Simulink model itself?
Hi @Sowmya Payyavula You can test out this Tapped Delay block. It can store data for the specified number of delay steps.

oltre 2 anni fa | 0

| accettato

Risposto
Can you share a thesis example about modelling of Unmanned Aircraft Vehicle for Simulink ?
Hi Tahsin, For modeling, reference books are usually very detailed in explaining the derivations of the governing state-space...

oltre 2 anni fa | 0

Risposto
I am looking for advice on the best way to learn matlab. I am a second year PhD student trying to familiarize myself with problems or projects. Any advice?
Hi @Mac Kenzie Some prefer to read books, and some learn faster by watching videos. If you are a beginner, I suggest you should...

oltre 2 anni fa | 0

Risposto
Error in pole placement
Hi @Ho Pui Sum That is the limitation of the place() command, and it is documentated here. In your case, the rank of the input ...

oltre 2 anni fa | 0

Risposto
How to find the Transfer function of a Simulink output plot?
Hi @Atefeh Given the piecewise function defined for I propose a more intuitively understandable Heaviside-based formula, whi...

oltre 2 anni fa | 1

Risposto
Help using fsolve (theta beta mach)
Hi @Evan Gehret If you have all the information on the right-hand side of the equation, then I think applying the inverse tange...

oltre 2 anni fa | 1

Risposto
Need help to make a ode function asign a value
Hi @Lucas Resende As mentioned by others, we cannot directly test your code because some information about the parameters is no...

oltre 2 anni fa | 0

Risposto
I need a help to plots pressure vs. Temp at equilibrium from the attached paper and in the same graph another plot using Peng Robinson model.
I'm not an expert in gas laws, but when the data is available (for example, in the fictional dataset below), you can plot the gr...

oltre 2 anni fa | 0

| accettato

Risposto
step response of non linear model
Hi @kruthika u Alternatively, you can describe the ODEs and the Outputs in a nonlinear State-Space System: In other words, y...

oltre 2 anni fa | 1

| accettato

Risposto
step response of non linear model
Hi @kruthika u For general nonlinear ODEs, you can refer to some examples in the ode45 documentation. To plot the state-depende...

oltre 2 anni fa | 1

Risposto
Trying to enter a transfer function in simulink (tauD s + 1)
Hi @Wouter Mathematically, is equivalent to in continuous-time domain. As a simple test, if we inject a signal, , which is al...

oltre 2 anni fa | 0

Risposto
adding noise to the solution obtained from ode45/dde23
Hi @Muhammad, Does it work if you execute the following? [t, y] = ode45(@odefun, tspan, y0); noise = mynoise(t); % user-...

oltre 2 anni fa | 0

| accettato

Risposto
Struggling to Solve 2nd Order ODE with Multiple Initial Values
Hi @David Bloom I'm not an expert in self-trapped optical spatial solitons, but I'm attempting to reproduce the graph shown in ...

oltre 2 anni fa | 0

Risposto
How can I fix the error message : Each rule must have a consequent pointing to a different output membership function.
Hi @Ahmad As requested, Stage 1 is tuned using PSO, and Stage 2 is tuned using Simulated Annealing. %% Sam's Data for 2 inputs...

oltre 2 anni fa | 1

Risposto
How can I fix the error message : Each rule must have a consequent pointing to a different output membership function.
Hi @Ahmad The tunefis() command enables the tuning of fuzzy systems by specifying one of the five optimization methods and thei...

oltre 2 anni fa | 1

Risposto
State space system gives incorrect plot
Hi @Julian Thank you for sharing the code. I didn't simulate this in Simulink but in MATLAB using the lsim() command. I plotted...

oltre 2 anni fa | 0

| accettato

Risposto
Cannot find a suitable controller for my state space system
Hi @Ethan Nobre The performance requirements are not clearly specified, other than addressing unwanted oscillations. Furthermor...

oltre 2 anni fa | 0

| accettato

Risposto
How to use a global variable when using ode45()?
Hi @David Before delving into the technical aspects of constructing the time-based event-triggered control signal, there are a ...

oltre 2 anni fa | 0

Risposto
How can i connect this plot line
Hi @Near Fiern It seems that the endpoint of LxAB is not the same as the starting point of LxCB. You can perform a logical test...

oltre 2 anni fa | 0

Risposto
Why my graphic always on straight line?
Hi @Nugroho Wisnumurti Although you haven't provided the Simulink file 'simulasi.slx', I believe your result indicates that the...

oltre 2 anni fa | 0

Risposto
How can I get a time response from FRD model
Hi @Bentolila Yedidia There isn't a direct function called 'frd2ss()' for the conversion you're looking for. However, you can e...

oltre 2 anni fa | 0

| accettato

Risposto
How do I create a transfer function using the zp2tf function with following poles and zeros
Hi @Matthew I didn't know what code you have tried. But you just need to specify the zeros, poles, and the gain correctly, and ...

oltre 2 anni fa | 0

Carica altro