photo

Sam Chak


Last seen: Today Active since 2020

Followers: 15   Following: 0

Statistics

  • Most Accepted 2024
  • 36 Month Streak
  • Thankful Level 3
  • Guiding Light
  • Knowledgeable Level 5
  • Revival Level 1
  • First Answer

View badges

Feeds

View by

Answered
Distinguish the different curves and identify the points corresponding to each way
Hi @rana I now understand that you are seeking advice on graphically displaying the data. Here is an example of what I consider...

2 days ago | 2

Answered
How do you use To Workspace? (DC Shunt Motor)
The To Workspace block logs the signal connected to its input port to the workspace. To access the data logged by a To Workspace...

3 days ago | 0

Answered
Why doesn't Iref_sd = 0 when 0 is input to Tref and ωm in the ACIM control reference?
Hi @中嶋 Your and according to mathematical model of the AC Induction Motor (ACIM) Control Reference block, if the condition is...

3 days ago | 0

| accepted

Answered
how to input a function as a parameter of a function
Hi @Tony Cheng Something like this: %% Script to call 'fMin1D' x0 = [1, 1]; [x, fval] = fMin1D(x0, @quadfcn) %% Minimize...

4 days ago | 0

| accepted

Answered
How to implement an LQR controller when the system's state variables and control inputs have different units?
Hi @준호 Could you provide a simple code example involving lqr() to illustrate your concern? There should not be any issues with ...

4 days ago | 0

Answered
Simulink physical sys is stable even the Matlab model for the same sys is unstable
Hi @mohamed If at least one pole of the closed-loop system has a positive real part, the system is considered unstable. You may...

5 days ago | 0

Answered
How to implement MPC when the number of states is greater than the number of outputs?
Hi @준호 The MPC Controller still functions effectively even when the number of states exceeds the number of outputs. I have made...

6 days ago | 0

| accepted

Answered
Stepinfo provides wrong rise time using [0, 0.63] limits for non minimum phase systems
Hi @Ken Buckholtz Here is another approach to estimating the user-defined rise time: by defining the 'RiseTimeLimits' and ident...

6 days ago | 0

Answered
Converting a nonlinear state equation into state dependent matrix form
Hi @Md Sabbir Haider Based on your descriptions, it is entirely acceptable to use the nonlinear state equations for simulation ...

6 days ago | 0

Answered
Stepinfo provides wrong rise time using [0, 0.63] limits for non minimum phase systems
Hi @Ken Buckholtz Rise time is a non-standard performance measure. By default, in MATLAB, rise time is defined as the duration ...

6 days ago | 0

Answered
please ,write a code to 3D plot this file .
I am unsure about the specific type of 3D plot you require. I reviewed your previous questions and found that you have already l...

8 days ago | 0

Answered
How to solve Coupled Differential Equations
Hi @Lorenzo Primarily, coupled ordinary differential equations (ODEs) in additive form can be decoupled using the substitution ...

8 days ago | 0

Answered
how can i simulate feedback system with fuzzy controller in m file without simulink?
Hi @mohamed al-asklany If the fuzzy controller (or the *.fis object) has been designed, it is straightforward to implement it ...

9 days ago | 0

| accepted

Answered
Plot the function on graph
Look up the documentation plot(). There are plenty of simple examples that you can learn to plot it yourself.

9 days ago | 0

Answered
PSO algorithm MPPT change irradiation condition
Hi @DIMAS You are likely seeking general solutions without needing someone to guide you through the process step-by-step. The d...

10 days ago | 0

Answered
How i can talk to support of Matlab website?
Hi @salim saeed I would like to add that when you share your scripts, code, models, or graphics, you grant forum users the righ...

11 days ago | 1

| accepted

Answered
Rotary Inverted Pendulum State Space Model PID Control
Hi @Burak Mert If no other control requirements are specified, the objective is to "freely" find any combination of gain values...

11 days ago | 0

Answered
Evolutionary learning tools or aids
If you are looking for a built-in function for optimizing solutions based on learning principles inspired by biological evolutio...

12 days ago | 0

Answered
Step response is not showing up in the legend of my plot
I tried plotting both to display on the same graph and inserted the legends. There's no problems so far. legend('simulated', 'e...

12 days ago | 0

Answered
Fit a standard exponential fit to approximate data
Hi @Reji G You can use the approach described by @William Rose. Alternatively, you can use the envelope() function. The followi...

20 days ago | 1

Answered
minimizing with genetic algorithm
Hey @dal For time-invariant real-valued univariate functions, it is recommended to plot the graph to estimate the approximate l...

2 months ago | 0

Answered
When plotting functions like 1/sin(x), how can I remove the vertical lines at the points of discontinuity?
Use fplot(). fplot(@(x) 1./sind(x), [-359 359]), grid on, xlabel('degree') % d = -345:30:345; % x = deg2rad(d); % y = ...

2 months ago | 0

Answered
how do divide like this picture by code matlab?
Hi @Vuong If this is a topic of Finite Element Analysis, then look up generateMesh() and pdemesh(). gm = fegeometry(@lshapeg);...

2 months ago | 0

Answered
Have successfully used ode45 once in this code, but with the same size parameters am getting an error about initial conditions vector being longer than the return vector.
Hi @Raoul There is no error in organizing the code structure clearly with constants and states (variables that change over time...

2 months ago | 0

Answered
Controllable Companion form for a MIMO system
Hi @naiva saeedia The following is the result returned by compreal: %% Original state-space Plant A = [-0.978707531551846 ...

2 months ago | 0

Answered
Initial Oscillations in Closed Loop Control Model
Hi @Mariangela Plot the vector field, and you should be able to understand the instantaneous dynamics at each point in the phas...

3 months ago | 0

Answered
PID tuning to meet conditions for settling time and overshoot while a stable system with minimum peak time and zero velocity error.
Hi @Ashaya KC Here is the solution using pidtune(). There is no direct way to input the desired settling time and overshoot per...

3 months ago | 0

| accepted

Answered
PID tuning to meet conditions for settling time and overshoot while a stable system with minimum peak time and zero velocity error.
Hi @Ashaya KC Let's first use the ideal mathematical solution and then compare it to your solution obtained using the pidtune()...

3 months ago | 0

Answered
having problem plotting ramp function
Hi @Tien Yin The signal in the image is a piecewise function that consists of three sub-functions defined over different interv...

3 months ago | 1

Answered
How to add an s+1 block on simulink?
Hi @Julian Since you are unable to clearly define the control objective and performance requirements, I can only advise you to ...

3 months ago | 0

Load more