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,307

REPUTATION
4,552

CONTRIBUTIONS
0 Questions
1,854 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
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...

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

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

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

6 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);

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

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

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

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

7 days ago | 0

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

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

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

8 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()...

8 days ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19 days ago | 0

| accepted

Load more

Go to top of page