Community Profile # Sam Chak

Last seen: Today Con actividad desde 2020

• • • • • • Ver insignias

#### Content Feed

Ver por

Respondida
Predicting the value at y(t=8) using my model
Hi @Matt Boyles You can try something like the following to estimate the output. However, there is no guarantee that the estima...

1 día hace | 0

Respondida
State-Space Matrix Closed Loop System C Matrix issue
Hi @Pablo Graale The output of the state-space system is . Your Ackermann's controller is full state-feedback, not output-feedb...

1 día hace | 1

Respondida
If I have a sigmoid equation depend on time and I want to input to Runge Kutta Orde 4Th equation. So, the graph show the sigmoid from Runge_kutta . How to call the function?
Hi @cindyawati cindyawati The RK4 algorithm by Cleve Moler, is available in File Exchange. https://www.mathworks.com/matlabcen...

1 día hace | 0

Respondida
How to change angles to 0 to 180
Hi @TTA Are you looking for the conversion like this? Angles180 = @(a) a/2 + 90; Result1 = Angles180([-180, 0, 180]) Res...

2 días hace | 0

Respondida
how to design a second order sliding mode control for speed of switched reluctance motor on simulink ?
Hi @Mohammed Amin The block in Circle #1 is a Derivative Block, and the block in Circle #2 is the linear State-Space Block. Cli...

2 días hace | 0

Respondida
If I have a sigmoid equation depend on time and I want to input to Runge Kutta Orde 4Th equation. So, the graph show the sigmoid from Runge_kutta . How to call the function?
Hi @cindyawati cindyawati I'm unsure if I understand the issue correctly. Do you expect a plot like this? tspan = linspace(...

2 días hace | 0

Respondida
How to model PI flow control with throttling (butterfly) valve in hydraulic centriful pump Simscape/Simulink model?
Hi @DB Due to the static nonlinearity of the valve characteristics, it is possible to find an inverse function for the valve in...

5 días hace | 1

Respondida
Solving a differential equation using ode45
Hi @GOBIND KUMAR, The code for the ode45 part can run. No issue with that. So, I think the problem lies in the computation of ...

7 días hace | 0

Respondida
Why Fuzzy logic Designer unable to open the Fis File?
Hi @Yara Physically check if the mamdanitype-01.fis is still there in the target folder. Check if the contents in the mamdani...

7 días hace | 0

Respondida
Derivative of state '1' in block ' 1/s Integrator' at time 42.104565484973058 is not finite
Hi @Yingxin Zhang Without a set of mathematical model to compare with the Simulink model, it is rather difficult to identify th...

7 días hace | 0

Respondida
Fuzzy Logic Toolbox - addRule throws "Do not use a rule keyword as a membership function name" error
Hi @tulu There are several typos. If you make the code less 'cluttered', you can spot the mistakes easily. The code is now is f...

8 días hace | 1

Respondida
simulation of a levitating object
Hi @Andeol Gillet Generally, you can follow these 3-D's steps to design the controller for a Maglev system: Derive the mathema...

10 días hace | 0

Respondida
tf and damp, all need the numerical coefficients of the transfer function
Hi @li hu Finding the poles (roots of the denominator) is like solving polynomial equations. However, if it is 5th-degree and ...

10 días hace | 0

Respondida
What is the best objective function to avoid the overshot when optimizing a PID controller?
Hi @aymene bacha First of all, you need to understand what causes the overshoot in the system, and what does not. Do you have ...

17 días hace | 1

Respondida
How can we represent this transfer function into state space representation in MATLAB?
Hi @Hind Aljallaf As far as I know, there is no MATLAB command in the Control System Toolbox for directly computing the control...

20 días hace | 0

Respondida
I get error when I try to plot sigmoid function
Hi @cindyawati cindyawati A pure sigmoidal logistic function looks like this x = linspace(-10, 10, 20001); S = 1./(1 + exp(...

22 días hace | 1

Respondida
how to right math functions
Hi @Abdulelah AlQahtani For simplicity, the signal can be defined like this. t = linspace(-5, 10, 15001); u1 = 0*(t <= 0); ...

23 días hace | 0

Respondida
How to use MATLAB's lqi.m function?
Hi @Craig Chambers I'm unfamiliar with you system. So, I tested with the LQR first. It seems that a properly scaled step inpu...

23 días hace | 0

Respondida
ODE45 to solve multiple degree of system free vibration
Hi @Karolina Kugiel ode45 solves the problem by integrating where . So I guess you looking for states . m1=10; m2=10; m3=10; ...

25 días hace | 0

Respondida
How to find kp ki values by having pm and gcf in matlab ?
Hi @Basava I guess you are not looking for the analytical formulas for and because you asked in this forum. So, when the pha...

25 días hace | 0

Respondida
Include a new condition to solve a system using ODE45
Hi @Mikel You can try the two approaches in the code. However, the step value should not exceed fs = 130, or else your designe...

28 días hace | 0

Respondida
Optimisation PID Using Sliding mode script
Hi @Tarek I don't think that SMC can optimize the PID gains. The structure of SMC is not an optimization algorithm. Before op...

alrededor de 1 mes hace | 0

Respondida
Positive definite and LQR
Hi @Scott Not exactly sure what you want. But I think there is no absolute rule saying that the state-cost weighted matrix has ...

alrededor de 1 mes hace | 0

Respondida
Write code and driver MR damper
Hi @kerollos The code can run now. However, you have to review the initial values and define for . The system looks unstable. ...

alrededor de 1 mes hace | 0

Respondida
how to use the anfis command
Hi @Alessio Centamore I think the syntax is for old anfis() input arguments. OutputFismat = anfis(dati_all, FisMatrix, [40 nan...

alrededor de 1 mes hace | 0

Respondida
Why is the output u always 0.166instead of 0 when my input e and es are both 0
Hi @罗雪峰 罗 The reason is because output 0.166 is computed from the Center of Area (CoA) defuzzification method. During the initi...

alrededor de 1 mes hace | 1

Respondida
How do I use a root locus to find a value of K such that the damping ratio of dominant closed loop poles is a specified value?
Hi @Thomas and @Luke McDevitt The steps are generally described in the following documentation, as well as in most undergrad co...

alrededor de 1 mes hace | 0

Respondida
Obtaining MIMO kinematic model (+ controller) using data-driven approaches
Hi @mgf_04 This sounds like a system identification problem. If you have the System Identification Toolbox™ installed, then try...

alrededor de 1 mes hace | 0

Respondida
how to sine wave plot
Hi @Raouf You can scroll down and find one example that is related to plotting a sine wave. 😉 help fplot

alrededor de 1 mes hace | 0

Respondida
Derivative of state '1' in block 'PP_poly/Integrator1' at time 0.0 is not finite.
Hi @Dogukan It's good to hear that your problem is solved now. I moved my comment to the Answer section because it helped you t...

alrededor de 1 mes hace | 0