Community Profile # Sam Chak

Last seen: Today Active since 2020

#### Statistics

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

View by

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

ungefär 5 timmar ago | 0

| accepted

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

en dag ago | 0

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

en dag ago | 0

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

4 dagar ago | 0

| accepted

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

4 dagar ago | 0

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

7 dagar ago | 0

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

7 dagar ago | 1

| accepted

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

7 dagar ago | 0

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

7 dagar ago | 0

| accepted

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

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

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

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

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

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

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

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

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

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

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

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

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

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad 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...

ungefär en månad 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 ...

ungefär en månad ago | 0