Community Profile

photo

Sam Chak


Last seen: Today Active since 2020

Statistics

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

View badges

Content Feed

Answered
The main concern in this investigation to minimize the cost, volume and power loss of a BLDC motor
Hi @Debabrata Since you are an expert in BLDC motors, you should be able to write down relevant formulas in code. The syntax fo...

12 hours ago | 0

Answered
How to convert time varying state matrix to ss ?
Hi @Savvas The ss() function accepts real- or complex-valued state-space matrices. Nowhere in the documentation does it mention...

12 hours ago | 0

Answered
Using direct search and Bisection method to find roots above y=40.
Hi @Zainab I don't understand most part of your cluttered code and your code cannot find the roots. Thus, I have indicated chan...

1 day ago | 0

Answered
How would I determine the gain required for a settling time of 1 second for the system G=(s+4)/((s+1)(s^2+6s+13))?
I think no gain can make the closed-loop system to settle at 1 second. The fastest is around 1.74 sec with the gain 16.89. You n...

3 days ago | 0

| accepted

Answered
Setting a Specific Formula for PID Controller in Simulink (Matlab)
Hi @nora Use the Transfer Funtion block instead. /help/simulink/slref/transferfcn.html

5 days ago | 0

Answered
Transfer Function Sensitivity & Complete Derivations
Hi @Richard I followed the formulas you provided and arrived at these solutions. syms s a k1 k2 Gp = 1/(s^2 + a*s); Gc ...

8 days ago | 0

Answered
How to exit an optimization function without error?
Hi @Sargondjani Can use return. Update: Editted the solution by using the function approach. %% Solving Stage A Problem firs...

8 days ago | 0

Answered
how to fit the coupled differential equations and get the coefficients?
Hi @영훈 임 You can try the Batch Least Squares method to estimate values of the parameters L1 and L2. Update: The solution is up...

8 days ago | 0

Answered
The output of solve(eqn, x) is still an equation instead of number
Hi @NGiannis In the comment above, if is set as constant, then the parameter appears in two terms. can be found by solving e...

8 days ago | 1

Answered
Trouble using the ode45 input
Hi @Isabella From the ODE, the analytical solution is a sine wave. If the parameters are some fixed values, then you can place...

8 days ago | 0

Answered
How to find out gain K in root locus for stable system through MATLAB program ?
@Ammon Traeden Click anywhere on the locus and the characteristic properties will appear. s = tf('s'); G = (s^2 + 10*s + 10)/...

11 days ago | 0

Answered
How can I solve this problem by using Euler's method?
Mathematically, the solutions look like the following:

11 days ago | 0

Answered
Help with simple nested function
Ciao @Davide Cannavacciuolo If I'm not mistaken, you probably want to plot something like this, right? Once you confirm that, w...

11 days ago | 0

Answered
How to find the Transfer function of a Simulink output plot?
Hi @Atefeh I'm not an expert, but I have friends who are, and one of them said this is possible with this math function: whe...

12 days ago | 1

Answered
How to solve these non-linear equations?
Hi @Samir Thapa If you have the Optimization Toolbox installed, then you can use the 'fsolve' function to solve the system of n...

12 days ago | 0

Answered
Seeking help for find matrix A,B,C, D for a space rappresentation
Hi @Edoardo Moroni. Aha! Now I understand your fundamental issue. Your mathematics teacher should have covered this matrix top...

12 days ago | 0

Answered
Fitting an exponential equation to this data with CFtool
Hi @Stefano Russo The data doesn't show the steady-state value. Nonetheless, we can still try fitting the exponential model to ...

13 days ago | 0

Answered
Having problems with PID Control...
Hi @JAVIER Based on the provided information and without the mathematical model of the robotic arm and the PD controller gains,...

13 days ago | 0

Answered
reinforcement learning will suddenly stop during the training process
HI @嘻嘻 The most common issue that the error message you've encountered in Simulink indicates that there is a "division by zero"...

13 days ago | 0

| accepted

Answered
ODE45 Output size
Hi @Sneh I think you want to compare the numerical solutions with the analytical solutions. %% Method 1: Numerical Solutions ...

13 days ago | 0

Answered
How do I modify the ball on a beam system to accommodate for Friction?
Hi @Kez If Fr is the friction, and you know the friction formula, then you inject it in this differential equation. I don't ...

14 days ago | 0

| accepted

Answered
Fisher's z transform with atanh() to rho goes to infinity
Hi @Alba Peris, If you make sure that rho stays in the range , then will be finite. rho = -0.999:0.001:0.999; y = atanh(rho...

14 days ago | 1

| accepted

Answered
how to make input to the system time variable?
Okay @Min Khant, the problem is incomplete. However, you can learn by yourself using this example for tracking the desired tra...

14 days ago | 1

| accepted

Answered
GA Algorithm for PID tuning
Hi @SURBHI GOEL Sometimes you can let GA randomly search during the initial run to observe if the performance requirements are ...

14 days ago | 0

Answered
How to keep track of accumulated error for integral term in a PID controller function?
Hi @David This simple example shows how to obtain the integral error signal by adding an auxiliary state in the my_Dynamics() f...

14 days ago | 1

| accepted

Answered
how to done this simulink , help me to do this i have to make aircraf with simulink
Hi @Nguyen Viet Hoang If you are not familiar with Simulink blocks and need to model the aircraft's longitudinal dynamics in Si...

15 days ago | 1

| accepted

Answered
How to apply PSO FOR REGRESSION?.
Hi @Ahmed Eltantawi it is technically possible to use PSO for predicting the output, although not by directly applying PSO. The...

15 days ago | 0

| accepted

Answered
Out of memory - dsolve 3rd order system
Hi @Chris G. If you're using the ode45 solver to find the state responses, here is how they look. Indeed, as mentioned by @Walt...

16 days ago | 0

Answered
how I can fix sample time in ode45
Hi @hossen hassanzadth Are you looking for something like this? T = 0.5; tspan = 0:T:10; y0 = [0.2,0.3]; [t, y]...

16 days ago | 0

| accepted

Answered
Damped Oscillation Equation Fitting
Hi @Haardhik You can probably estimate the value of omega (angular frequency) by counting the number of zero-crossing events. I...

16 days ago | 0

Load more