Community Profile

# Sam Chak

Last seen: 1 jour il y a Actif depuis 2020

#### Content Feed

Afficher par

A répondu
differential equations matlab with 2 equations with changing values dependent on each other
Hi @Brennah Not exactly sure what to do dxe2 = diff(dxe). But from the given ODEs, they can be solved to obtain and . You can...

environ 24 heures il y a | 0

A répondu
how to derivate an equation of x and y without taking any variable constant?
Hi @Ahmed Mujtaba It can be confusing because the math structure of y/1 - x - cos(y) is legitimately interpreted as . Guess y...

1 jour il y a | 0

A répondu
Halley's method
Hi @Vivian Ho It is recommended to show your working and efforts in solving the problem. But if you are having trouble, then yo...

2 jours il y a | 0

A répondu
How to use the matlab to predict the properties price given some observations using fuzzy logic (FL)?
Hi @jamal numan Generally, you need to collect data about the past and current state of the Property Prices in a region and its...

2 jours il y a | 0

A répondu
Lyapunov stability analysis function
Hi @Lydia Abigail Garza Coello As far as I know, there is no built-in function.m in MATLAB for directly performing the Lyapunov...

2 jours il y a | 0

A répondu
How to identify negative slope from plot data?
Hi @Michael Tognotti This is just a basic idea for identifying the region of negative slope. Generally, the numerical different...

2 jours il y a | 0

A répondu
How can i calculate the PI controller gains from my plant transfer function
Hi @Mads Olesen Perhaps you can directly insert the PI controller and obtain the closed-loop response. Tune the gains if not go...

3 jours il y a | 1

| A accepté

A répondu
Derivative of state '3' is not finite.
Hi @younwook song The system is unstable. It is rather difficult to decipher the dynamics from the displayed block diagram and ...

3 jours il y a | 0

A répondu
I want help solving differential equations
Hi @kubel Follow the example in the dsolve() documentation https://www.mathworks.com/help/symbolic/dsolve.html syms x(t) eq...

3 jours il y a | 0

| A accepté

A répondu
Plot several solution curves to y'(t) = y(t) - t
Hi @Carla Roos You can create an anonymous function of t and y. fun = @(t, y) y - t; % <--- Type like this % solve f...

4 jours il y a | 0

| A accepté

A répondu
How to import my state space Modell into Simulink
Hi @Ann-Christin Schlupek You will need to import the identified model from the MATLAB workspace into Simulink. Follow the step...

4 jours il y a | 0

A répondu
Closed-loop parameters identification
Hi @Andrea Carlo Giorgio Gottardini I see. You need the mathematical model to perform tuning on the PID. Since the Simulink mod...

4 jours il y a | 0

A répondu
is there any way to train a model to learn a matrix and all variables in it then generate same matrix
Hi @hessam asadi The answer is generally yes, it is possible to train so long as it is a non-singular (invertible) matrix. Fir...

4 jours il y a | 0

A répondu
Why the controller block diagram is not working (while tracking the reference and water level in tank 2 at specific level)?
Hi @Sana Mohamed It seems that your equation for causes the level of Tank #2 to dip below 0, thus term sqrt(x(2)) returns an ...

4 jours il y a | 0

A répondu
defining state matrix as anonymous function
Hi @Nicole The input should be defined for in order for the anonymous function to work properly in MATLAB. % parameters m ...

4 jours il y a | 0

A répondu
2-DOF Damped Unforced System. Finding Natural Frequences/Damping ratios. Receptance Matrix.
Hi @Nikolaj Gatijatullin I don't have sufficient knowledge about System 2 (2-DOF). If you can show how you normally use Mathema...

7 jours il y a | 0

A répondu
Plot step response for control signal (u1 u2 ...) in a MIMO system with feedback
Hi @Cesar Adolfo Cruz Vargaya The original plant is a coupled 2nd-order MIMO system. If the desired closed-loop transfer functi...

8 jours il y a | 0

A répondu
PID implementation using code
Hi @Sanjeet Kulkarni Wouldn't it be simpler if you obtain the signal directly from the Integrator block, and then feed it into...

9 jours il y a | 0

A répondu
Optimizing simulink parameters from matlab code
Hi @Jasmin Falconer Put it another way around, you can fminunc() to directly optimize the gains from the Simulink model and th...

9 jours il y a | 0

A répondu
conversion from fmincom to NSGA -II
Hi @basit mujtaba If you have written your own NSGA-II algorithm in a MALTAB function file, for example, called nsga2.m, then y...

9 jours il y a | 0

A répondu
Find likelihood from state space with Kalman filter
Hi @Rob Perhaps you are looking for the likelihood() function. help likelihood

9 jours il y a | 0

| A accepté

A répondu
Driving force of driven damped harmonic oscillator missing
Hi @Jerry Yeung Basically, there is nothing wrong with your original code. The reason that the spring response is not affected ...

10 jours il y a | 0

A répondu
I need cost function for tuning PID controller help me
Hi @Yazeed Ali Not sure what your system is, but I think you can try the one of the simplest cost function probably looks like ...

11 jours il y a | 0

A répondu
nonlinear variable state space observer pole placement
Hi @Bernd Pfeifer Long time I didn't solve math puzzles like this one. Generally, you should be able find the analytical soluti...

17 jours il y a | 2

A répondu
finding the distance between two points
Hi @Natali Petani You can try the function: pdist2(). https://www.mathworks.com/help/stats/pdist2.html help pdist2

22 jours il y a | 0

A répondu
Input Signal from state space model
Hi @Justin You can try using the lsim() function. Search Google/Documentation for details. Example is shown below: A = [ 0 ...

22 jours il y a | 0

A répondu
My Simulink Model takes hours to complete 1 second, and I need to run it for 5,000 second. I tried to change the minimum time step, but Matlab keeps giving erros when I do so.
Hi @janna roberts The typical satellite attitude dynamics are not stiff. You can try, but I think changing it to a stiff solver...

22 jours il y a | 0

A répondu
How to verify if my system (Z-domain) is stable in MATLAB
Hi @Rafael Most probably because you did a "positive feedback". Try do this impulse(feedback(K*TF, 1)) instead of impulse(f...

23 jours il y a | 0

A répondu
How to make the linear function
Aha, I see... If you want to get rid of spikes and want a smooth transition, but not strictly linear, then you can consider addi...

23 jours il y a | 0

A répondu
Creating custom Transfer Function with more learnable parameters