Community Profile

photo

Sam Chak


Last seen: Today Active since 2020

Statistics

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

View badges

Content Feed

View by

Answered
Error using ^ for control systems related functions
Hi Aliuddin, If you want to get the transfer function directly, then use this syntax: tfsys = tf(ss(A,B,C,D))

9 hours ago | 0

Answered
Control Systems & Transfer Functions
Hi @Richard Update: A diagram illustrating the successive reductions of the multi-loop system has been added for clarity. Belo...

21 hours ago | 0

| accepted

Answered
I have 3rd order non-linear ODE and 2nd order ODE one depends on the other (free convection from vertical flat plate) with 5 B.C's how can i solve it numerically using MATLAB
Hi @Ali Al-Jaberi It appears that the origin [0, 0, 0, 0, 0] is the only equilibrium point of the system, albeit an unstable on...

1 day ago | 0

Answered
How can I plot an ellipsoid using the ellipsoid function with a given equation in the form of ax^2+by^2+cz^2 = 1.
If you want to use the function ellipsoid(), here is an example: % center coordinates cc = [0 0 0]; xc = cc(1); yc = cc(2...

2 days ago | 0

Answered
Error in ode arguments (line 92), error in ode45 (line 107)
Hi @Thomas There is a typo in the function odefcn(). % System parameters: A1 = 1; % (m^2) Cross-sectional area of the...

2 days ago | 0

| accepted

Answered
I can't open any scripts.
Hi @Rebekah, Can you click on the Editor tab over here?

2 days ago | 2

Answered
How to get a specific shape of a contour plot in MATLAB
Hi @Bibigul, Check if this is what you want. x = linspace(0,1,11); y = linspace(0,1,11); Z = [0 0 0 ...

2 days ago | 3

| accepted

Answered
Guidance needed to generate Pseudo-Random Binary Sequence (PRBS) and ternary-sequence signals
@MUHAMMAD AJMAL Please refer to the information and examples in these links: https://www.mathworks.com/help/slcontrol/ug/prbs-...

2 days ago | 0

Answered
clc command window restore
Hi @Rana You can press the Up Arrow key (↑) to navigate the Command History. https://www.mathworks.com/help/matlab/ref/command...

3 days ago | 0

Answered
matlab invalid expression error
Hi @Kathleen Fixed "invalid expression errors" are marked by these arrows ''<--". However, the variable m_true is not provided ...

3 days ago | 0

Answered
I want to plot (x vs t ) of a differential equation containing signum function.please help ASAP
Hi @RAJAT You can find examples of solving ordinary differential equations in this link: https://www.mathworks.com/help/matlab...

3 days ago | 0

| accepted

Answered
How to code algebric loop in MATLAB script file?
Hi @Faezeh Yousefpour I've got the code to run correctly from a mathematical perspective. However, it's essential to examine ho...

3 days ago | 0

Answered
Emulate the fullstate feedback gains using ZOH ?
Hi @eleorigin, It appears that there is a need to convert the designed full-state feedback controller from a continuous-time re...

3 days ago | 0

Answered
Motor Controller for a Internal Permanent Magnet Synchronous Motor (IPMSM)
Hi @Raphael Baumeler A nominal mathematical model is required by the PID Tuner to design a PID controller for IPMSM. If the pla...

3 days ago | 0

Answered
how can optimize the width of member function of fuzzy in MATLAB using Ant Colony
Hi @wissam alansari I can't find the Ant Colony Optimization algorithm in MATLAB, and I don't understand the limit that you are...

4 days ago | 0

Answered
How to define initial conditions without getting an array error
Hi @Gabriela, The initial values can be specified as scalar values, without using array indexing method. tspan = [0 30]; %...

4 days ago | 0

Answered
How do I plot the infinite norm of a matrix on a graph?. I should have a square but I end up having a circle
Hi @Muhideen Ogunlowo Perhaps you want to plot something like this: p = [1, 2^1, 2^2, 2^3, 2^4]; for j = 1:length(p) f...

4 days ago | 0

Answered
How to run a simulink model from a matlab file with different inputs each step?
Hi @Sebastian Thank you for your clarifications. Now that we understand your controller has internal state dynamics, it's impor...

5 days ago | 0

Answered
How to find the Transfer function of a Simulink output plot?
Hi @Atefeh Think you want to apply the curve-fitting method to fit the sinusoidal model to the time-series data. load('V_I.mat...

5 days ago | 1

| accepted

Answered
Why I am getting "Matrix is singular to working precision"?
Hi @Shakil I attempted to replicate the results that displayed the warning message 'Matrix is singular to working precision.' F...

5 days ago | 0

Answered
Can anyone please Explain this model to me in text format
Hi @Mohamed Althaf Considering the level of sophistication evident in the Simulink model you have developed, I presume that you...

5 days ago | 0

| accepted

Answered
Task space control of a robot through dynamics
Hi @Szymon Blazejewicz This Simulink example shows you how to generate the trajectories for the end effector of the robot manip...

6 days ago | 0

Answered
Help me plot the solution in graph
Hi @Hung, I'll show you another two ways of plotting the line equations. syms x y % specify the two line equations eqn1 ...

6 days ago | 0

Answered
How can I train ANFIS using Particle Swarm Optimization algorithm ?
Hi @Ahmad To achieve a lower prescribed error measure, you can manually increase the number of Membership Functions until the d...

6 days ago | 0

Answered
How to put the fis I designed in Fuzzy Logic Designer App to Simulink?
Hi @JingChong Ning Follow these steps, and it should work. Suppose you have designed a fuzzy logic system and named it "myFuzzy...

7 days ago | 0

Answered
Element Wise Matrix multiplication issue (.*)
Hi @Yuvraaj Pasumarthy If you want to examine the effects of varying the beta values while keeping zeta and mu fixed, the struc...

8 days ago | 1

Answered
Writing a system of ODEs for ode45
Hi @Noob, Your code is unfinished, and when you run it, MATLAB will throw an error message. You can also try solving the ODE by...

9 days ago | 0

Answered
MATLAB code for fuzzy logic based battery scheduling for 24 hours in microgrid to minimize cost and grid dependency
Hi @REENA I can fix the warning message in the fuzzy system. Could you please interpret the meaning of the output values for me...

9 days ago | 1

Answered
How to solve this equation?
Hi @Ali Almakhmari, It seems that there are no real solutions for . From the graph, we can see that we need to lower the quadra...

9 days ago | 1

| accepted

Answered
Linear Driving Force Model for Gas Adsorption in Fixed Bed
Hi @JUBAIR AHMED SHAMIM Editted to run your supplied code. The state responses (Tbed, Twater, Tgas) converge to the same value ...

9 days ago | 2

| accepted

Load more