回答済み
in this I apply a loop so that I will have different value of Y(:,11) for the different value of initial condition for Y(:,11), what is correct algorithm for this??
Hi @SAHIL SAHOO Your k vector is assigned incorrectly. Try if this code works for you. ti = 0; tf = 1E-3; tspan = [ti ...

4年弱 前 | 1

| 採用済み

回答済み
First order PID controller
Hi @John Rogers Just some additional info. The plant is a 1st-order Type-0 system. num = [85]; den = [42 1]; Gp = minreal(t...

4年弱 前 | 0

回答済み
pid for dynamic malaria
Hi @af af Not sure what are PID controllers for the Malaria dynamics. However, by the mathematical manipulation, you can probab...

4年弱 前 | 0

回答済み
How to implement PID anti-windup in my m-file (i.e., without using Simulink)
Hi @Ali Not sure if you are still interested. If the output of is within the range of the actuator, then the anti-windup is pr...

4年弱 前 | 0

回答済み
How to; For loop of angle in projectile motion
Hi @Aston g = 9.82; % gravity v0 = 100; % inital velocity theta0 = pi/6; ...

4年弱 前 | 0

回答済み
How to find the value of PID using ziggler 2 method
Hi @Raka Adhwa Unsure if you are still interested in the problem. But if the model is available, then the analysis can be perfo...

4年弱 前 | 0

回答済み
Density Control in Tank (TL) - Simscape
Hi @Keshav Arora, thanks for the density equation. I'm don't know how density works in the Simscape watertank. However, you ca...

4年弱 前 | 0

回答済み
Design PI regulator with constrictions
Hi @Alejandro Fernández Proposal #1: Linear compesator If the restriction on the output of the compensator can be relaxed a l...

4年弱 前 | 0

回答済み
PID controller optimization in simulink using parallel simulations in objective function
Hi @Irfan Khan I'm unfamiliar with the Simulink approach, but in MATLAB, the script to find the PID gains subject to ITAE crite...

4年弱 前 | 0

回答済み
System Modelling of mechanical diesel propulsion vessel
Hi @Sharul Baggio Taking this introductory tutorial on Simulink Onramp should be helpful to get things started. https://www.ma...

4年弱 前 | 1

回答済み
Implement PID in ode45 code
Hi @Kashish Pilyal If the error is defined as then P part is I part is D part is and you can arrange then in the stat...

4年弱 前 | 1

| 採用済み

回答済み
state estimation error observer design
If the error dynamics is described by a linear model Esys, then n2 = norm(Esys, 2) computes the root-mean-squares of the impul...

4年弱 前 | 0

回答済み
how can add PI to ode45?
Hi @karim_karimo Here are the mathematical preliminaries for constructing the PI in ODE form. [t, x] = ode45(@system, [0...

4年弱 前 | 1

| 採用済み

回答済み
How to solve 3 non-linear equations with 3 unknowns?
Hi @Stefan Krieg, You can use vpasolve(). q = 1.60218e-19; %electron discharge V_oc = 4*44.8; %Open c...

4年弱 前 | 0

回答済み
how to DESIGN ADAPTIVE NEURO-FUZZY INFERENCE SYSTEM (ANFIS)
Hi @welesh beyene Have already recommended you to use ode45() function. Links and Examples were given previously. https://www....

4年弱 前 | 1

回答済み
how to extract data from sys=ss(A,B,C,D) that is , inputs and outputs
Hi @welesh beyene, Let's try this simple state-space model and generate the data using ode45() function (click on the link): ...

4年弱 前 | 1

回答済み
Obtain transfer function from (noisy) measurement data and use this transfer function for control in simulink
Hi @tiessen Do you want to estimate the frequency response the Transfer Function or a real mathematical function-type of the Tr...

4年弱 前 | 0

回答済み
how to extract data from sys=ss(A,B,C,D) that is , inputs and outputs
Hi @welesh beyene A = [-300 0 0 0 0 0; 0 -300 0 0 0 0; 0 0 0 0 1 0; 0 0 0 0 0 1; 10.7206 -9.5648 10.7206 -9.5648 0 0; -9.5648 1...

4年弱 前 | 1

| 採用済み

回答済み
Division by zero error and Singularity error in my simulink model
Hi @BISMARK Can you insert a picture of the Block Diagram under the Mechanical model mask? If Simulink throws this kind of 'is...

4年弱 前 | 0

回答済み
Is it possible to switch between multiple adaptive MPC controller?
Hi @Artem Wendler I'm not sure how complicated is your problem. If the ON/OFF switching is triggered by a simple event that dep...

4年弱 前 | 0

回答済み
How to calculate IAE between zero-crossing
@PAOLO OLIVIERI Are you looking for a MATLAB or Simulink solution? sys = ss([0 1; -1 -1], [0; 1], [1 0], 0); [y, t] = step(sy...

4年弱 前 | 0

回答済み
Cubic poly trajectory function
Hi @Odesanmi Gbenga Abiodun One practical alternative and a mearning way to learn how to generate 3rd-order trajectories is to ...

約4年 前 | 1

回答済み
Transition from one condition to another with a certain pattern - Simulink
Hi @patr chri Mathematically yes, the smooth path of transition can be designed. Here is an example: Guess you have found th...

約4年 前 | 1

回答済み
How to model a rotating heat source in Simulink?
Hi @Mukti Chaturvedi To model a process (rotating heat source) in Simulink, you need a mathematical equation and some parameter...

約4年 前 | 0

回答済み
How to input (A/s) as source input signal in Simulink?
Hi @CHUN-KUAN CHIH The symbol 'A' probably stands for a reference amount of the setpoint to be entered. You insert a Gain Block...

約4年 前 | 0

回答済み
How to programe clipping sine wave
Hi @Mvana Cannot open your jpg (I'm lazy to fix the link). If you study Pure Math in high school, you need to use the sign func...

約4年 前 | 1

| 採用済み

回答済み
fuzzy and ode system
Hi @fateme zrbd Say the ODE is given by where and are the coefficients of the state and the input , respectively. From ...

約4年 前 | 1

| 採用済み

回答済み
How can I create a pulse train which is not periodic? A sample program has been attached.
Hi @BIPIN SAMUEL I followed an example in this link and modifed values of the parameters. Do you think it can be applied to you...

約4年 前 | 0

回答済み
How to plot this function
Hi @Dinh Le Dung Think it should look like this: [X, Y] = meshgrid(-0.5:1/40:0.5); Z = X.*Y.*(X.^2 - Y.^2)./(X.^2 + Y.^2); s...

約4年 前 | 1

回答済み
Solving Differential Equation by Laplace Transform
Hi @Addison Harley Tiangco Follow the example to solve Differential Equations (RLC Circuit) using Laplace Transform. You can t...

約4年 前 | 0

さらに読み込む