Community Profile

photo

Sam Chak


Last seen: Today Active since 2020

Statistics

  • Guiding Light
  • 12 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 5
  • Revival Level 1
  • First Answer

View badges

Content Feed

View by

Answered
how can I get ABS Control/Simulation Toolbox?
Hi @Daniel Atomsa If you have Simscape, then take a look at this example of modeling the Anti-Lock Braking System (ABS). https...

2 dagen ago | 0

Answered
Using problem based optimization to control a system
Hi @2Lindsay2, I'm unsure of what your expectation is. However, if the final position is changed to the origin, then the conver...

2 dagen ago | 0

Answered
Runge-Kutta-4th-order solution of 3 ODEs
Hi @Turgut Ataseven Fix the code as indicated below: tspan = [0 20]; % Time interval y0 = [5 5 5]; % Initial conditions...

3 dagen ago | 0

| accepted

Answered
how to to make model on simulink to check rise time ,overshoot ,steady state error of tf ?
Hi @Muhammad Since you can use tf() function, I presume you have the Control System Toolbox. In the Simulink model, you can se...

4 dagen ago | 0

Answered
Solution Plot of the Constant Harvesting Function with Directional Field
Hi @Gith I'm unsure, but I think that it was the quiver scaling issue when the carrying capacity is too large (on the Y-axis),...

4 dagen ago | 0

Answered
How to normalize surf plots?
Hi @Athira T Das Are you looking for a plot with normalized output? syms x y x0 = -.5:0.001:.5; y0 = x0; w0 ...

7 dagen ago | 0

| accepted

Answered
PID altitude control of quadcopter
Hi @Dhruvilkumar Chavada The following example is based on the pure math analysis on the contineous-time equations of motion gi...

7 dagen ago | 0

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

9 dagen ago | 0

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

9 dagen ago | 1

| accepted

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

10 dagen ago | 0

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

10 dagen ago | 0

| accepted

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

10 dagen ago | 0

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

10 dagen ago | 0

| accepted

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

13 dagen ago | 1

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

15 dagen ago | 0

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

15 dagen ago | 0

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

15 dagen ago | 0

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

16 dagen ago | 1

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

18 dagen ago | 0

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

18 dagen ago | 0

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

25 dagen ago | 1

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

28 dagen ago | 0

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

ongeveer een maand ago | 1

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

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

ongeveer een maand ago | 0

Load more