Community Profile # Sam Chak

Last seen: Today Active since 2020

#### Statistics

• • • • • • #### Content Feed

View by

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

7 hours ago | 0

| accepted

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

7 hours ago | 0

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

9 hours ago | 0

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

3 days ago | 1

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

5 days ago | 0

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

5 days ago | 0

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

5 days ago | 0

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

7 days ago | 1

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

8 days ago | 0

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

8 days ago | 0

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

15 days ago | 1

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

19 days ago | 0

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

20 days ago | 1

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); ...

21 days ago | 0

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

21 days ago | 0

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

23 days ago | 0

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

24 days ago | 0

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

26 days ago | 0

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

28 days ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 1

| accepted

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

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

1 month ago | 0

Track a circular trajectory by solving a QP and using quadprog solver (using CLF approach)
Hi @Pallov Anand Sufficiently increasing the value of alpha reduces the tracking error between the x-y trajectory and the desi...

1 month ago | 0

Сan not identify block
Hello @Anton It is possible to create the block using "block mask" techniques. However, I think the authors probably (and simpl...

1 month ago | 1

| accepted