photo

Sam Chak


Last seen: 1 dag ago Active since 2020

Followers: 13   Following: 0

Statistics

  • 36 Month Streak
  • Thankful Level 3
  • Guiding Light
  • Knowledgeable Level 5
  • Revival Level 1
  • First Answer

View badges

Feeds

View by

Answered
How to add an s+1 block on simulink?
Hi @Julian Since you are unable to clearly define the control objective and performance requirements, I can only advise you to ...

1 dag ago | 0

Answered
Optimization Eigenvalue problem Stiffness matrix
Hi @Marina The problem has two parts. I have solved only the first part for you, which is to determine the characteristic polyn...

ongeveer een maand ago | 0

Answered
Turning powers of hyperbolic functions to multiple arguments
Hi @Andrew At first, I thought you were describing the sum of arguments. This is certainly not a silly question. However, it re...

ongeveer een maand ago | 1

Answered
how can I calculate euler constant
Hi @hajer Three days ago, @John D'Errico and I discussed the Gamma function in this thread. I’m not sure how to perform the num...

ongeveer een maand ago | 2

Answered
make the execution faster
Hi @prabal datta You might as well use the built-in ODE solver, such as ode45, to solve the chaotic Lorenz system for compariso...

ongeveer een maand ago | 1

Answered
The Newton Raphson method for p(x) = 100 .* sqrt(x) .* 0.99.^(sqrt(x)) - 0.5 .* x, problem with derivative and reasonable x value
Hi @Elina You likely want to find the value of where the maximum value of occurs, but you may have inadvertently used the New...

ongeveer een maand ago | 0

Answered
finding altitude using matlab atmosisa given pressure
Hi @Irfan You can use this minimization approach. altitude = ga(@costfun, 1, [], [], [], [], 3.9e3, 4e3) %% Check result [~,...

ongeveer een maand ago | 0

| accepted

Answered
PID controller behaves strangely for larger Ts values
Hi @Wynand There are a few things for which you can find detailed explanations in control theory books. In short, the ideal ITA...

ongeveer een maand ago | 1

Answered
How do I solve this differential equation?
Put the constants inside the function. tspan = [0, 1e-3]; y0 = [0.139626; 0]; [t, y] = ode45(@(t,y) odefcn(t,y), tspa...

ongeveer een maand ago | 1

| accepted

Answered
How to do this block diagram in simulink?
Hi @Tahsin If you are referring to this block diagram, there is a slight mistake in the architecture, as the Velocity Loop and ...

ongeveer een maand ago | 0

Answered
How to properly fit the data to lorentzian curve as I am getting a few errors...
Hi @Yogesh Here is the fitting with a Gaussian model. RMS=[]; R=[]; P_threshold=[]; L=5; %[m] Fiber length V1=[1]; P0=4.7...

ongeveer een maand ago | 0

Answered
PI controller does not have the effect I would expect from the calculations
Hi @Wynand Please see my explanations below. %% Plant K = 11041666; B = 100; M = 1019; num ...

ongeveer een maand ago | 0

| accepted

Answered
What calculation is done to find the gains (k) of the zpk function?
Hi @Rafaella Barrêto Campos Short Answer: Due to your specific state-space configuration, k(1) is derived from the first elem...

ongeveer een maand ago | 0

Answered
Model and control state space with perturbation
Hi @CN. The discussion in the provided link does not address control design for disturbance rejection. Regarding your inquiry,...

ongeveer een maand ago | 0

Answered
Trying to create a polynomial using data from a table
Hi @Andrei I believe the correct syntax should be [X, Y] = meshgrid(dP, PressureInlet), and the remainder of your code appears ...

ongeveer een maand ago | 0

Answered
What optimization algorithm would work best for my network problem?
Hi @Robert Gray It may be difficult to determine which optimization algorithm would work best for your network problem. Some op...

ongeveer een maand ago | 0

Answered
How to properly fit the data to lorentzian curve as I am getting a few errors...
Hi @Yogesh Here is how I fit the Lorentzian model: RMS=[]; R=[]; P_threshold=[]; L=5; %[m] Fiber length V1=[1]; P0=4.7960...

ongeveer een maand ago | 0

| accepted

Answered
Controlling the actuator with 5,10 mm displacement input.
Hi @Fatih The mathematical function for the reference signal (red curve) is necessary so that we can instruct the PID controlle...

ongeveer een maand ago | 0

Answered
function zpk and linmod
Hi @Rafaella Barrêto Campos Once you have the state-space, you can apply the zpk() function to obtain the TF in zpk mode. A ...

ongeveer een maand ago | 0

Answered
I am using the MATLAB exchange file called "A MATLAB Script for Earth-to-Mars Mission Design", getting error sunscreen is not defined
Hi @Chintan Most of the simulation projects by David Eagle require SNOPT, which stands for Sparse Nonlinear OPTimizer. If you a...

ongeveer een maand ago | 1

| accepted

Answered
How to define the output membership function in Sugeno method while using Fuzzy Logics Design app in Matlab?
Hi @Tharun Balaji Rangaswamy Selvakumar If you have a set of data, you can train the ANFIS, which produces the Sugeno Fuzzy Sys...

ongeveer een maand ago | 0

Answered
Dimensionless variables of the differential equation
Hi @Yu The aim is to render the entire dynamical system dimensionless (by finding the dimensionless time derivative), rather th...

ongeveer 2 maanden ago | 0

| accepted

Answered
Is there a way to determine an equivalent circuit for Nyquist diagrams (I have the data set) using Matlab (or Simulink)?
Hi @Arthur FdA I'm unfamiliar with your circuit system. However, if you have the data in the form of frequency-response, then y...

ongeveer 2 maanden ago | 2

Answered
for the parameter space in fuzzy logic , how can i choose the value of the numbers ?
Each selected membership function type requires the parameters to be specified as a vector. The length of the parameter vector d...

ongeveer 2 maanden ago | 0

Answered
Asking about fuzzy mamdani rule
Please refer to the example in the link for constructing a fuzzy inference system at the MATLAB command line. https://www.mathw...

ongeveer 2 maanden ago | 0

Answered
No rules fired for Output 1. Defuzzified output value set to its mean range value 2.3873.
Hi @Eliane Fernández I replicated the Warning message in the example below. It is easier to understand why the warning occurs b...

ongeveer 2 maanden ago | 0

Answered
Error in Simulink - Derivative of state '1' in block at time 301.02267725 is not finite. The simulation will be stopped. There may be a singularity in the solution.
Hi @federica terlizzi % Derivative of state '1' in block 'gam_control1/PID Controller2/Integrator/Continuous/Integrator' % at...

ongeveer 2 maanden ago | 0

Answered
changes the parameters of a fuzzy Inference system in run time
Hi @gaurav kumawat If you enter fixed numeric values in the block parameters of the membership function blocks or in the fuzzy ...

ongeveer 2 maanden ago | 0

Answered
why is the Transfer fcn like this instead of showing in variable s?
Hi @Saeid It's because the block is not big enough to display . Click at the corner of the block and drag it horizontally unti...

ongeveer 2 maanden ago | 0

Answered
fuzzy logic controller failed design problem
Hi @KAO CHUN YU The singleton (constant) output membership functions in Fig. 5 indicate that this is a Sugeno fuzzy system; how...

ongeveer 2 maanden ago | 0

Load more