# Sam Chak

Followers: 0 Following: 0

**Feeds**

已回答

Find State Space Representation of non-linear System to find State Space Representation in Canonical form MATLAB

Hi @Jonathan Frutschy Given that no original MATLAB code for the nonlinear system is provided, I believe it would be more effic...

Find State Space Representation of non-linear System to find State Space Representation in Canonical form MATLAB

Hi @Jonathan Frutschy Given that no original MATLAB code for the nonlinear system is provided, I believe it would be more effic...

8 hours 前 | 0

已回答

Ramp block having reset option

Hi @Andraz If you have a good understanding of the fundamental mathematics behind a line graph, then theoretically, you should ...

Ramp block having reset option

Hi @Andraz If you have a good understanding of the fundamental mathematics behind a line graph, then theoretically, you should ...

1 day 前 | 0

已回答

need name of the block in simscape tools

Hi @Hamid Ullah It appears to be a Simscape block diagram. Simscape components cannot be connected directly to the Scope block....

need name of the block in simscape tools

Hi @Hamid Ullah It appears to be a Simscape block diagram. Simscape components cannot be connected directly to the Scope block....

1 day 前 | 0

已回答

Trying to determine roots of this polynomial (Det)

k = [1750 -750 0; -750 1250 -500; 0 -500 500]; m = [75 0 0; 0 75 0; 0 0 50]; D = inv(m)*k; syms x I = [x,0,0;0,x,0;0...

Trying to determine roots of this polynomial (Det)

k = [1750 -750 0; -750 1250 -500; 0 -500 500]; m = [75 0 0; 0 75 0; 0 0 50]; D = inv(m)*k; syms x I = [x,0,0;0,x,0;0...

1 day 前 | 0

已回答

a nonlinear system and its control input in simulink

Hi @controlEE The control signal plotted in your comment is incorrect. Since you have completed the learning tasks and are capa...

a nonlinear system and its control input in simulink

Hi @controlEE The control signal plotted in your comment is incorrect. Since you have completed the learning tasks and are capa...

3 days 前 | 1

已回答

I want to find two missing parameters in an ODE system of equations using regression/optimization in MATLAB

Hi @naiva saeedia I have prepared a simple demonstration below to illustrate that the fmincon optimization solver can be utiliz...

I want to find two missing parameters in an ODE system of equations using regression/optimization in MATLAB

Hi @naiva saeedia I have prepared a simple demonstration below to illustrate that the fmincon optimization solver can be utiliz...

4 days 前 | 0

已回答

integrate for long equation

Hi @GUILU You can DIVIDE the integrand and then CONQUER it. Once you've done that, you can validate the result by comparing it ...

integrate for long equation

Hi @GUILU You can DIVIDE the integrand and then CONQUER it. Once you've done that, you can validate the result by comparing it ...

6 days 前 | 1

已回答

How do I solve the following Algebra equation?

Algebraically speaking, since there is no equal sign '', it is not an equation and there is technically nothing to solve in the ...

How do I solve the following Algebra equation?

Algebraically speaking, since there is no equal sign '', it is not an equation and there is technically nothing to solve in the ...

8 days 前 | 0

已回答

Particle swarm algorithm in Fuzzy Logic Designer is breaking unity sum property of membership functions, how can I stop this?

Hi @Ben Hatrick I have rarely used PSO to tune fuzzy systems, and I hadn't realized this phenomenon until you brought it up. ...

Particle swarm algorithm in Fuzzy Logic Designer is breaking unity sum property of membership functions, how can I stop this?

Hi @Ben Hatrick I have rarely used PSO to tune fuzzy systems, and I hadn't realized this phenomenon until you brought it up. ...

9 days 前 | 0

| 已接受

已回答

hi how can i evaluate the function below from x=1,x=2 into a step of 0.1 y=x/(x2+1)

syms x y = eval('x/(x^2 + 1)') % <-- check if the function is correct xa = 1; % start point of [xa ≤ x ≤...

hi how can i evaluate the function below from x=1,x=2 into a step of 0.1 y=x/(x2+1)

syms x y = eval('x/(x^2 + 1)') % <-- check if the function is correct xa = 1; % start point of [xa ≤ x ≤...

9 days 前 | 0

已回答

How to expand this formula in Matlab/simulink

If the symbol is related to the complex variable as defined in the Laplace transform, then you can use the Transport Delay bloc...

How to expand this formula in Matlab/simulink

If the symbol is related to the complex variable as defined in the Laplace transform, then you can use the Transport Delay bloc...

9 days 前 | 1

| 已接受

已回答

Plotting a 3-value graph

Refer to the examples in yyaxis documentation. x = linspace(0,10); y = sin(3*x); yyaxis left plot(x,y) z = sin(3*x).*exp(...

Plotting a 3-value graph

Refer to the examples in yyaxis documentation. x = linspace(0,10); y = sin(3*x); yyaxis left plot(x,y) z = sin(3*x).*exp(...

10 days 前 | 0

已回答

How can I define a block ( Transfer Fcn) in simulink?

Hi @M1A Linear time-invariant models with more zeros than poles are not supported in Simulink. However, you can create such a m...

How can I define a block ( Transfer Fcn) in simulink?

Hi @M1A Linear time-invariant models with more zeros than poles are not supported in Simulink. However, you can create such a m...

11 days 前 | 1

| 已接受

已回答

how to add subscript into transfer function and constant block parameter

Hi @Olarewaju Update: In order to create a model block with a visually appealing display of mathematical notation, I personally...

how to add subscript into transfer function and constant block parameter

Hi @Olarewaju Update: In order to create a model block with a visually appealing display of mathematical notation, I personally...

11 days 前 | 0

| 已接受

已回答

I am running into trouble answering the question asked in the description.

Hi @Jackson, You have been provided with the MATLAB script 'Project2_Q1.m' to plot the solution curves for question Q1(a). To ...

I am running into trouble answering the question asked in the description.

Hi @Jackson, You have been provided with the MATLAB script 'Project2_Q1.m' to plot the solution curves for question Q1(a). To ...

11 days 前 | 0

已回答

problem with matlab function in simulink (inpunt problem)

Hi @Alya Bostani Is this the expected result for ? Try fixing the code in the matlabFunction block. t = 0:0.01:10; P = as...

problem with matlab function in simulink (inpunt problem)

Hi @Alya Bostani Is this the expected result for ? Try fixing the code in the matlabFunction block. t = 0:0.01:10; P = as...

11 days 前 | 0

已回答

a nonlinear system and its control input in simulink

Hi @controlEE Great job on your progress shown in the comment. Now, I'd like to share my piecewise function formula with you: ...

a nonlinear system and its control input in simulink

Hi @controlEE Great job on your progress shown in the comment. Now, I'd like to share my piecewise function formula with you: ...

12 days 前 | 1

已回答

How to get graph properties on Live script? e.g. Rise time, setting time etc.

Can use the stepinfo() command. G = tf(1, [1, 10, 20]) % the transfer function stepinfo(G) step(G), grid on

How to get graph properties on Live script? e.g. Rise time, setting time etc.

Can use the stepinfo() command. G = tf(1, [1, 10, 20]) % the transfer function stepinfo(G) step(G), grid on

12 days 前 | 2

| 已接受

已回答

Hello all, I have a little problem with my simulink model. So, I can't connect this block each other like I had in past model from old version Matlab. Do u mind, how solve ?

Hi @Bogdan The blocks you're looking for are likely still present in the MATLAB directory, although they may be hidden within s...

Hello all, I have a little problem with my simulink model. So, I can't connect this block each other like I had in past model from old version Matlab. Do u mind, how solve ?

Hi @Bogdan The blocks you're looking for are likely still present in the MATLAB directory, although they may be hidden within s...

12 days 前 | 0

已回答

I can't see the cosine graph. How do I generate the cosine graph using 2^10 samples?

deltat = 0.001; nsamples = 2000; time =[0 : deltat : deltat*(nsamples-1)]; size(time) % for i = 1:nsamples ...

I can't see the cosine graph. How do I generate the cosine graph using 2^10 samples?

deltat = 0.001; nsamples = 2000; time =[0 : deltat : deltat*(nsamples-1)]; size(time) % for i = 1:nsamples ...

13 days 前 | 0

已回答

Solving a system of Non Linear Differential Equations

Hi @kdv0 Apart from the incorrect initial value for , which should be , the rest of the information in the code is correct. The...

Solving a system of Non Linear Differential Equations

Hi @kdv0 Apart from the incorrect initial value for , which should be , the rest of the information in the code is correct. The...

13 days 前 | 0

已回答

Plotting an Inverse Laplace Function

Not exactly an answer, but rather an attempt to recreate the 'answer' that was displayed in your Command Window. It appears th...

Plotting an Inverse Laplace Function

Not exactly an answer, but rather an attempt to recreate the 'answer' that was displayed in your Command Window. It appears th...

14 days 前 | 0

已回答

How to fix my linear fit model?

Hi @Jenni Upon initial inspection, it appears that the data follows the trend of the ReLU function, which is a piecewise linear...

How to fix my linear fit model?

Hi @Jenni Upon initial inspection, it appears that the data follows the trend of the ReLU function, which is a piecewise linear...

14 days 前 | 1

已回答

Simulation for a standalone wind turbine with a DFIG

There is an example for a wind turbine with a Doubly Fed Induction Generator (DFIG). Type "DFIG" at the Help Center to search ...

Simulation for a standalone wind turbine with a DFIG

There is an example for a wind turbine with a Doubly Fed Induction Generator (DFIG). Type "DFIG" at the Help Center to search ...

14 days 前 | 0

| 已接受

已回答

Couple ODE System not enough Input arguments, Why?

Hi @Thanh Hoang I have added these four lines to your original code. The modifications made are minimal. %% ----- added these ...

Couple ODE System not enough Input arguments, Why?

Hi @Thanh Hoang I have added these four lines to your original code. The modifications made are minimal. %% ----- added these ...

14 days 前 | 0

已回答

I want to find two missing parameters in an ODE system of equations using regression/optimization in MATLAB

Hi @naiva saeedia The system identification task at hand seems to be quite challenging, as you only have two parameters to mani...

I want to find two missing parameters in an ODE system of equations using regression/optimization in MATLAB

Hi @naiva saeedia The system identification task at hand seems to be quite challenging, as you only have two parameters to mani...

14 days 前 | 0

已回答

How do I optimize solutions of ODE?

Hi @Amito Usami-san Considering your objective of varying the force input 'Fc', it becomes necessary to create a Gain Schedule ...

How do I optimize solutions of ODE?

Hi @Amito Usami-san Considering your objective of varying the force input 'Fc', it becomes necessary to create a Gain Schedule ...

14 days 前 | 1

| 已接受

已回答

solve differential equations use bvp4c

Hi @lvlv sun Add these two lines to code as shown below to get the desired number of points for the solution. numpts = 5; ...

solve differential equations use bvp4c

Hi @lvlv sun Add these two lines to code as shown below to get the desired number of points for the solution. numpts = 5; ...

14 days 前 | 0

| 已接受

已回答

hi.I have problem in spacecraft dynamic control simulation.

Hi @ali.heydari I renamed the ODE function to 'odefcn()' because 'ode' is a built-in function introduced in the R2023b release....

hi.I have problem in spacecraft dynamic control simulation.

Hi @ali.heydari I renamed the ODE function to 'odefcn()' because 'ode' is a built-in function introduced in the R2023b release....

15 days 前 | 0

| 已接受