photo

Sam Chak


Last seen: Today Active since 2020

Followers: 7   Following: 0

Statistics

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

View badges

Feeds

View by

Answered
Loading satellite TLE data into MATLAB using satellite function
It had de-orbited about a few days ago. Perhaps the final TLE data suggested that it reentered Earth's atmosphere.

2 days ago | 0

| accepted

Answered
How to set up a solar water heating system?
Hi @忠宇 If there is no pre-existing model available for the thermal dynamics of a solar heating system, it is possible to manual...

5 days ago | 0

| accepted

Answered
Hello all, kindly, I have question , how can I get the piecewise function of this blood flow rate shown below using Matlab
Hi @FAWAZ FAREAD AL BAKRI Constructing a piecewise function can be a tedious process, as this sinusoidal signal requires defini...

5 days ago | 0

Answered
Plotting a unit step function without heaviside.
Hi @abdelkader omr Your function looks somewhat like a Boxcar function. However, your description of the continuous-time functi...

7 days ago | 0

Answered
How does the Spacecraft Dynamics block work?
Hi Andrew, The Spacecraft Dynamics block simultaneously models both the Orbital (translational) and Attitude (rotational) dynam...

8 days ago | 1

| accepted

Answered
Solver decreases step-size at certain anomalies
Hi @Quirin Regarding the issue with the rapid zero-crossing, it appears to be caused by the Derivative block used to compute th...

9 days ago | 0

Answered
How to get acceleration data while using ODE solver for some governing equation of motion?
Hi @Paras I believe I understand what @Torsten is trying to imply. He is an expert in solving dynamical systems. It is true tha...

11 days ago | 0

Answered
Leader follower approach formation control problem
Hi @Enrica Regarding the task of designing a Leader-Follower formation, the first step is to ensure that the leader robot track...

12 days ago | 1

Answered
How to get acceleration data while using ODE solver for some governing equation of motion?
Hi @Paras Use the deval() command to acceleration data. sol = ode45(@(t, x) [x(2); -x(1)], [0 10], [1; 0]); t = lin...

12 days ago | 0

| accepted

Answered
I need control system block diagram of this specific system.
Hi @Anik Though this is not directly related to MATLAB/Simulink, here is the Control Block diagram of the BESS system that I fo...

12 days ago | 1

Answered
write a MATLAB code to locate all yellow circles in the provided image
Hi @nishanth patil The code is available in the example to locate the bright yellow circular objects. You need to adjust the Se...

13 days ago | 0

Answered
Error using InputOutputModel/feedback
Here is a simple to demo to achieve steady-state errors using two PID controllers. %% State-space system m = 4; % mas...

13 days ago | 0

Answered
Solving system of nonlinear differential equations using ode45
Hi @Miroslav Jovic It appears that your current formulations may be erroneous. If you are not comfortable memorizing the requir...

14 days ago | 0

Answered
Please I want help I have homework I made a mistake saving the file
Hi @Baha Alholi I did a test and "accidentally" saved the code in mat-file format. If I attempt to open the file normally, it t...

14 days ago | 0

Answered
How to draw a Nyquist plot while avoiding the pole at the origin
Hi @ayumi obitsu-san Consider the Nyquist plot for for transfer function with a pole at the origin (also known as "Type-1 syst...

16 days ago | 0

Answered
Error in ode15s
I suspect there is also a typo for Ta because the 'a' key is next to the 's' key. If you follow the advice in Walter's Answer, ...

16 days ago | 0

| accepted

Answered
How can I change the length of a line using the xline() function?
Hi @Md Affan Since you know the coordinates, you can directly use the plot() function. % plot([x1, x2], [y1, y2]) creates a li...

16 days ago | 0

| accepted

Answered
How do I code Ziegler-Nichols Tuning Method to find PID control constants?
Hi @ieng100, It is now time to provide a conclusion for this control problem. In the Ziegler-Nichols 2nd method, the critical ...

17 days ago | 0

Answered
how to use the parameters of neural network in simulink?
Hi @Ahmad Al-Issa If you want to implement a trained neural network in Simulink to predict the Desity based on two inputs (p, T...

18 days ago | 1

Answered
Control System Tuner always selects maximum value
Hi @Cedric The algorithm in Control System Tuner will find the best combination of PI gains that produces the smallest steady-s...

21 days ago | 0

Answered
How I Design Adaptive Cascade Sliding mode Observer for Wind Turbine ?
Hi @ahmad nouri I can understand the frustration that can come with manually designing an observer, as it often requires comple...

22 days ago | 0

Answered
how to solve coding issue
Hi @Radwan, It's good to hear that you're making progress. If you encounter any issues with plotting other types of charts, fe...

22 days ago | 0

Answered
Fit Multiple gaussian curve on data with flat tops
Hi @AMIT For a double-hump data with plateaux, you can try fitting it using two Exponential Power distribution functions. Let's...

22 days ago | 0

Answered
Discret time LQR R matrix must be symmetric positive definite with as many columns as B error
Hi @Andrei Rotaru Fixing the code as shown will eliminate the error message. R = eye(size(B, 2)); K_d = dlqr(Ad, Bd, Q, R, ...

22 days ago | 0

| accepted

Answered
PID model for MIMO system
Hi @Andrei Rotaru Since the Cubli system is underactuated and you seek to use only a PID Controller, you must select which outp...

22 days ago | 0

| accepted

Answered
Can we change the Constraints in MPC ?
Hi @Kripanshu If you wish to define the bounds on the manipulated variable, , such that , can you accept the following workarou...

23 days ago | 0

Answered
PID controller, difference when graphing step function with PID control block in matlab and simulink
Hi @hoang Both responses look similar if you implement them correctly as shown. s = tf('s'); Gp = 1.883e5/(s^2 + 4466*s + ...

23 days ago | 1

| accepted

Answered
Why step respose don't work for first input of a MIMO? And how to use correctly feedback function for pole placement?
Hi @Andrei Rotaru You defined the system with 3 outputs; thus you need to feedback 3 outputs as well, not 1 output. %% Model p...

25 days ago | 0

| accepted

Answered
Can't stabilize system with PID
Hi @Andrei Rotaru Here is the alternative control solution for finding the gains using LQR approach. %% Parameters l = 0.08...

28 days ago | 0

Answered
Facing problem in printing real pole of transfer function of a system(Control System)
Hi @Arya The following is what you wish to "print" out in the title in Integer format. However, please note that the title it...

28 days ago | 0

Load more