Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 1

| accepted

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 0

Answered
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-...

2 years ago | 0

| accepted

Answered
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 ...

2 years ago | 0

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

| accepted

Answered
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 ...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

| accepted

Answered
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 ...

2 years ago | 0

Answered
I am attempting to code a function with a differential (temperature with respect to time) and i am unsure how to do so
Hi @tyler You probably won't post a question here if you're searching on Google for "how to solve an ordinary differential equa...

2 years ago | 0

Answered
6DOF joint accelerating without a force present
Hi @Nils van der Gaag In the absence of force, if the initial velocities are non-zero (or start from non-equilibrium states), t...

2 years ago | 0

Answered
How can I define this differential equation in matlab syntax to solve it using ode45 ?
Hi @Namit Dayal Depending on the values of , this is one way to solve the differential equations using the 'ode45()' solver. He...

2 years ago | 0

| accepted

Answered
How to build a plot differential equations
Hi @Maria Please check your second state equation. It does not produce a circle in the phase portrait. However, I will show you...

2 years ago | 0

| accepted

Answered
Matlab cant find the inverse of my function
Hi @Muhammad Adillah The main issue is caused by the product term because it lacks a functional inverse: . Perhaps you will g...

2 years ago | 0

| accepted

Answered
Tune FIS with Training Data
Hi @Ahmad, You have the option to select one of the five tuning algorithms as shown below: "ga" — genetic algorithm "particle...

2 years ago | 2

Answered
Please help for objectiveFunction command.
Hi @SOUVIK The input argument to call fmincon() is incomplete. I prefer the ode45 solver over the Euler integration method. How...

2 years ago | 1

| accepted

Answered
Design of Simulink block
Hi @Aniebiet, The GoTo block passes its input to its corresponding From blocks, which may be connected to the input port of so...

2 years ago | 0

Answered
How can I define this differential equation in matlab syntax to solve it using ode45 ?
Hmm... @Namit Dayal, but you declared that "gammadot is not a differential term". Thus, only is regarded as the differential te...

2 years ago | 1

Answered
Transfer Function Implementation with s and sqrt
Hi @Anastasios The transfer function that describes the mapping from the input (input Current) to the output (output Voltage) a...

2 years ago | 0

Answered
converging criteria problem in for loop in bisection method of finding roots.
Hi @MD You can change the for-loop to a while-loop and x(i) to xnew. Also, insert the initial count. The new search interval cr...

2 years ago | 0

| accepted

Answered
Hi. Can anyone provide the matlab code for spectrum sensing in cognitive radio using K-means?
Sure @Alcides, the code for computing the k-means clustering is available in this link: https://www.mathworks.com/help/stats/km...

2 years ago | 0

Answered
i need matlab function to minimize power losses for optimal allocation of ev charging station
Hi @Asmaa Naser There are several built-in optimizer functions you can try to minimize power losses. Find them here: https://w...

2 years ago | 1

Load more