# Sam Chak

Last seen: Today Active since 2020

Followers: 5   Following: 0

#### Feeds

View by

Find Transfer Function from Laplace transformation
The differential equation has a dependent variable with nonlinearity u(t)³. Since nonlinear systems cannot be analyzed by Laplac...

5 dagar ago | 1

Cannot solve algebraic loop involving 'Mo_phong_xe/Equation1_ddgama1/MATLAB Function5' because it consists of blocks that cannot be assigned algebraic variables, such as block
Hi @Viet Dung It looks like the root cause of the issue have been identified. Let me walk through the details: The second-orde...

5 dagar ago | 0

If & elseif to determine temperature essentially
Hi @Zachary The following code allows you to extract both the numeric value and the character representation of the temperature...

6 dagar ago | 0

Ode45 Quarter car model spring variation
Hi @Federico Fortini It seems like you're looking to plot the acceleration of the first spring-mass system. If that's the case,...

6 dagar ago | 0

How to Solve nonlinear equations in simulink
Code for the MATLAB Function block: function dx = fcn(x) ks = 29114; kt = 233350; cs = 925.8; mw = 56.9...

6 dagar ago | 1

| accepted

Inverse model for feedforward control
Hi @Martin In my previous Answer, I used to Transfer Function (frequency version) to describe the process plant. I have revisit...

10 dagar ago | 0

| accepted

Inverse model for feedforward control
Hi @Martin Thanks for your feedback in the comment. The provided first-order ODE: , suggests that the "pure" feedforward cont...

10 dagar ago | 0

how can I get the transfer function of this equation using Matlab: dy/dx + K*sqrt(y)-C =0
Hi @Reuel The square root is a nonlinear term in the system, making the Coupled Tank System nonlinear. Consequently, the transf...

11 dagar ago | 0

| accepted

Inverse model for feedforward control
Hi @Martin As the target trajectory contains frequency components, a factor of 600, rather than 6, must be employed in this sec...

12 dagar ago | 0

Hi @Andrei Rotaru According to the principle of Occam's Razor, the most likely explanation for the lack of oscillation in the a...

12 dagar ago | 1

| accepted

Cannot solve algebraic loop involving
% Derivative of state '1' in block 'NAM_Mo_phong_xe/Equation1_ddgama1/Integrator' at time % 0.0030900000000000003 is not finit...

12 dagar ago | 0

Edit poles and zeros in root locus design editor or bode editor
Hi @Nandhini I prefer mathematical model-based design by formulas that satisfies certain stability properties and achieves spec...

13 dagar ago | 0

Inverse model for feedforward control
Hi @Martin Transfer function: Math model in continuous-time: This linear 1st-order ODE is 100% solvable and the ideal fee...

13 dagar ago | 1

One function is greater than other
Hi @Fatima Majeed The search below covers this range . z = linspace(0, exp(1), 3001); fun = @(z) z - 8.02*log(z) - (3.359/2...

13 dagar ago | 0

Attempt to plot an piecewise function
S = @(x) ( (x <= -2) ) .* 0 + ... ( (x > -2) & (x <= -1) ) .* (1/4 * (2 + x).^3) + ... ( (x > -1) & (x <= 0...

15 dagar ago | 0

| accepted

How to solve a system of nonlinear differential equation that follows some pattern
Hi @MADHAN The looping approach is given as follows: %% for-loop approach function dx = ode1(t, x, n) dx = zeros(n,...

16 dagar ago | 0

Fuzzy control problem: input 2 expects a value in range [-50 50], but has a value of 1035.94
Hi Rafi, Based on your Simulink model, Input 2 refers to the time derivative of the error signal. In the fuzzy system, you ha...

22 dagar ago | 0

Plotting Phase Portrait of Duffing Equation
Hi @Athanasios Paraskevopoulos This method utilizes the 'arrow()' function, which was created by Professor @Erik Johnson. You c...

30 dagar ago | 3

| accepted

The solution to the delayed differential equations using the code dde23 represents the solution by the third order Runge-Kutta method or what?
Hi @mohammed, Your guess is correct. If you click on the link to the dde23's Algorithm section, you will find that it states "d...

ungefär en månad ago | 0

| accepted

Error using FuzzyInferenceSystem/addOutput (line 866) Upper range value for variable must be greater than lower range value. Error in rulepruning (line 24) fis = addOutput(fi
Hi @Michael Bamidele The syntax to add output membership functions is incorrect. Use 'addMF()' instead. However, it is highly r...

ungefär en månad ago | 1

| accepted

Hi @Marina Since you know the initial output value, the idea is to convert the Identified State-Space to an equivalent Canonica...

ungefär en månad ago | 0

PID controller tuning for time-varying input
Hi @AleF Without more context about the specific system you are trying to control, it is difficult for us to provide targeted r...

ungefär en månad ago | 0

How can I divide by the function variable in a Simulink equation?
Hi @Louis In the 2nd-order ODE, the independent variable 'r' can represent the radius of the system or another relevant paramet...

ungefär en månad ago | 0

| accepted

In this work, I am trying to connect two systems by injecting a delayed wave of the first system into the second system. In this system, there are several problems, including:
Hi @mohammed Both @Torsten and I have been trying to understand the problem you are attempting to solve. However, it appears th...

ungefär en månad ago | 0

エンジントルクの求め方
Dear @雄祐 三浦-san The formula to calculate the torque produced by the engine in this specific example, is given in Equation 4, as...

ungefär en månad ago | 0

In this work, I am trying to connect two systems by injecting a delayed wave of the first system into the second system. In this system, there are several problems, including:
Hi @mohammed Based on the information you have provided, it appears the two systems could potentially be combined and then solv...

ungefär en månad ago | 0

| accepted

Enforce Kinematic Constraint in Initial Value Problem ode45()
Hi @Jonathan Frutschy Visualizing a system with 600 masses can be challenging. However, I believe the kinematic constraint for ...

ungefär en månad ago | 0

| accepted

tuning model predictive controller
Hi @Mounira This is often a problem where designers begin with what they are trying to end with. Similar to some LQR practition...

ungefär en månad ago | 0

| accepted

I'm trying to solve two separate systems using ODE23 while controlling the number of indexes so that the indexes are equal for both systems, but I couldn't. Can you help? Than
Hi @mohammed Please review if this approach is accceptable. tspan = linspace(0, 5, 251); opt = odeset('RelTol',1e-3);...

ungefär en månad ago | 0

| accepted