Sam Chak - MATLAB Central
photo

Sam Chak


Last seen: Today Active since 2020

Followers: 15   Following: 0

Statistics

MATLAB AnswersFrom 07/20 to 03/25Use left and right arrows to move selectionFrom 07/20Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%

RANK
43
of 297,350

REPUTATION
4,552

CONTRIBUTIONS
0 Questions
1,857 Answers

ANSWER ACCEPTANCE
0.00%

VOTES RECEIVED
975

  • 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
"Hold Value" of a Fuzzy Control while no rule is active
Hi @Daniel If none of the rules is triggered for any output, the defuzzified output value will default to its mean range value,...

1 day ago | 0

Answered
Error using type too many output arguments
Possibly syntax error. The strcmpi() function is used to compare strings. So, you need to place the texts in double quotes. %va...

1 day ago | 0

Answered
iztrans giving unexpected outputs
Another way is to provide a proof by contradiction. Misprints can happen due to a lack of proofreading. syms n f1 = n*(-1)^...

1 day ago | 0

Answered
Liquid Hydrogen Fuel Station
Hi @Shiva Kumar Bairoju Like @Yifeng Tang, I'd also suggest modeling this system using Simscape, as the entire hydrogen refueli...

5 days ago | 0

Answered
Incorrect y intercept using fitlm
Extend the line, and you will see the y-intercept at . % Example data (replace with your actual data) xData = [1, 2, 3, 4, 5, ...

5 days ago | 0

| accepted

Answered
Numerical solution to coupled non linear differential equations
Hi @Atharv Although I don't understand your robotic dynamics, but based on your ODEs, I see that is present in the highest ord...

8 days ago | 0

Answered
Matlab Dimpulse function documentaion not found
Hi @Md. Ikrama Hossain For your information, the current version of the impulse() function can be applied to both continuous-ti...

8 days ago | 0

Answered
how to access variables from simout - simulink simulation running programatically
Try this %% Data sent to Workspace toWksData = out7_1_1.simout; or this toWksData = get(out7_1_1, simout);

8 days ago | 0

Answered
can't write "hat", "tilde", "bar" in the title of the figure
I have problem with the GUI in past releases. I usually type out the syntax on the Command Window. title('$\hat{\theta}_{estim}...

8 days ago | 0

| accepted

Answered
How to plot and find zeros of a complex polynomial?
Hi @simran I am unsure whether a symbolic approach exists. However, to use the fsolve() function, you need to provide initial g...

8 days ago | 0

Answered
Fuel cell system efficiency increasing at increasing altitude
Hi @Vyom Desai We are uncertain where to begin in reviewing the code, as all the essential calculative steps for determining sy...

8 days ago | 0

Answered
find the minimum of polynomial.
For a two-degree polynomial (quadratic) in the form of "y = ax^2 + bx + c", the formula to find the minimum value is: min = c - ...

9 days ago | 0

Answered
Simulink summing block - how to get negative input at the top of the summing block?
Hi @Kenny Enter this:

9 days ago | 1

| accepted

Answered
How to use the magicformula as a MATLAB function in simulink
There are two versions of the 'Magic' formulas. Can you mathematically derive ​ from their outputs? If so, you can write the der...

9 days ago | 0

Answered
Finding the points where Bessel functions are equivalent
Hi @Matthew I revisited your approach using vpasolve(), but I provided an initial guess that is close to the solution, as illus...

10 days ago | 0

Answered
Finding the points where Bessel functions are equivalent
Hi @Matthew You might consider approaching the problem as finding the minimum point of a convex function. I have used both ga()...

10 days ago | 0

Answered
How to find the Linear Analysis Tool
Most likely because you haven't installed the Simulink® Control Design™ tool/software.

11 days ago | 0

Answered
Simulink Threshold with action
Naturally, I would expect that the input signal evolves over time and that the thermostat-like controller performs a switching a...

11 days ago | 0

Answered
I made it pretty far in writing the code for an assignment. However, I am struggling to figure out how to finish the code. Can anyone show me how to finish it?
Hi @Antonio I believe that your app should allow users to input their parking start date-time and exit date-time, almost simila...

12 days ago | 0

Answered
Transport delay generate to matlab function
Hi @Enes I applied the modulo operation to the triangular membership function from the Fuzzy Logic Toolbox to create the equila...

12 days ago | 0

Answered
I want to take the square root of a transfer function
Hi @Calum Unlike plotting time responses using the step() and lsim() functions, or first solving the ordinary differential equa...

12 days ago | 0

Answered
Too many input arguments
Previously, the symbolic is undefined in the z(t) function. clear all; close all; syms k t z0=2; r=0.01; K=100; u=0.75; B=1...

13 days ago | 0

Answered
plotting coordinates vs. time and i need my time to run with or without loop function repeatedly.
Hi @shane Generally, coordinates can be specified in 2D (planar) or 3D (spatial) formats. If you wish to plot the spatial coord...

13 days ago | 0

Answered
How to code a cantilever beam with lumped spring mass damper on the free end
Hi @Shrijit Generally, you can model beam dynamics using Euler-Bernoulli theory for long beams or Timoshenko–Ehrenfest theory f...

13 days ago | 0

Answered
ask intergral and derivate
Hi @승표 I used the ordinary differential equations (ODEs) from this PMSM example because they are similar to your case. Specifyi...

14 days ago | 0

Answered
multiple equations to steady-state system to transfer function
Hi @erin Part 1 of your code does not work because the tf() function from the Control System Toolbox is primarily used for crea...

14 days ago | 0

Answered
Use of functions ctrb and poly
No error message generated. You should provide yours to find out the actual issue. A = [ 0 1; -1 -2]; B = [ 0; ...

15 days ago | 0

| accepted

Answered
How to find rise time in fractional order system, give matlab code?
Hi @SARAVANAN Once you have generated the response signals y(t) from the fractional order system, use the following syntax to d...

15 days ago | 0

| accepted

Answered
deriving a transfer fuctnion
Hi @Plato This is a homework question. However, you can use the feedback() function to compute the closed-loop transfer functio...

15 days ago | 0

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

19 days ago | 2

Load more

Go to top of page