Answered
can I ask a several question about automatic control ?
Hi @영석 윤 When a differential equation is given, modeling a system in Simulink requires converting the equation into integral fo...

2 years ago | 0

Answered
Water Storage Tank Modelling
Hi @Abdelmoniem Abomosalam Your question is quite broad, so I recommend starting with the modeling of water tank level control....

2 years ago | 0

Answered
Modeling a water tank system using h(t)
Hi @Maria The equation you showed, , is actually the analytical solution of a 1st-order linear system that exhibits an exponent...

2 years ago | 0

Answered
please help me to this error "Derivative of state '1' in block 'ex/Integrator1' at time 1.3765443114784894 is not finite. The simulation will be stopped. There may be a sing
Hi, your system is unstable and it grows without bound, thus making the simulation stops. Check the formulas of each Gain block....

2 years ago | 0

Answered
Root Locus Plot Is Way Off
Hi @Walter Roberson Based on the description from the OP, the compensated system should form a closed-loop system. The formula ...

2 years ago | 0

Answered
Root Locus Plot Is Way Off
Hi @Arpad It seems that employing the place() command is a more efficient approach to solving the pole placement problem. I wil...

2 years ago | 0

Answered
Root Locus Plot Is Way Off
Hi @Arpad I am uncertain about what your professor intends for you to learn. Initially, the problem seems akin to a standard Po...

2 years ago | 0

Answered
Tune FIS with Training Data
Hi @Ahmad Long story short, the MATLAB data file 'tunedfismpgprediction.mat' contains 2 pre-trained FIS files because this is a...

2 years ago | 1

| accepted

Answered
Please help. The first input argument of the "tf" command cannot be a string.
Hi @Melissa Variable K doesn't a specific value, I want multiply K other variables like TR2... From the root locus, it appear...

2 years ago | 0

Answered
Lotka volterra model for 3 species (1 prey - 2 predators)
Hi @José Manuel This isn't strictly a MATLAB-related question, but I believe animal behaviorists might be able to advise you. A...

2 years ago | 2

Answered
PID simulation for heating with heat pump
Hi @Branko What is the best way to simulate the system and ... If you are a newbie, I'd recommend modeling the system in Simul...

2 years ago | 1

Answered
transfer function zeros are more than poles
Hi @aiman You can try these configurations (2 methods). Both should produce nearly the same output signals.

2 years ago | 1

| accepted

Answered
Plotting issue where the curve is missing
Hi @Lutfi The reason is that Phi_b is a constant, and time is a vector. They don't have the same dimension. Phi_b = (1 - 0.930...

2 years ago | 2

Answered
Plot interval in y
Hi @Maria The ylim() command can be used to set the interval on the y-axis. x = -1:0.01:1; y = x.^3 - 0.25*x.^2 - 0.5*x; f...

2 years ago | 1

| accepted

Answered
Inverse Laplace transform of a 4 by 4 matrix
Hi @Sunday Aloke Since this is a linear dynamic system described in state-space, the output can be found using the dsolve() com...

2 years ago | 0

| accepted

Answered
particle swarm optimization code to minimize cost function
Hi @REENA Regarding the particleswarm() solver, I believe you can define constraints using the Problem-Based Optimization appro...

2 years ago | 0

Answered
How would I plot this and then achieve minimum and maximum.
Hi @Tom The cubic function does not have global extrema, but it does have a local maximum point and a local minimum point. Are ...

2 years ago | 1

Answered
ode45 errorI have
Some corrections in the ODE function (ODAYRK1) Tol = 1e-12; Tol0 = 1e-9; tspan = [0 10]; options = odeset('RelTol',...

2 years ago | 0

Answered
Find zeropoints with interpolation
Hi @malik abdelli Check this out to see if this approach, using the zerocrossrate() function, is acceptable for finding the ind...

2 years ago | 1

Answered
Help With for loop with tranfer function and step
Hi @Davide Cannavacciuolo You probably want to plot like this: s = tf('s'); G = 1/(s^2 + 0.4*s + 0.1); K = [1 2 3 4 5 6]; ...

2 years ago | 0

| accepted

Answered
How to type sin function with square
@John Sanjai J, are you expecting this? syms x expr = sin(x)^2

2 years ago | 0

| accepted

Answered
What is the function to use to find the intersection of two graphs?
Hi @Lê It is possible to find intersections using the fsolve() command. f = @(x,y) y - 2 - (x.^2).*cos(x); fimplicit(f), grid...

2 years ago | 0

Answered
Solve ODE without initial condition
Hi @sudhir I also couldn't obtain the analytical solution using dsolve(). However, when I tested this problem on Wolfram Alpha,...

2 years ago | 0

Answered
inverse laplace transform from laplace transfer without using " ilaplace" instruction
Hi @Abdallah My integral skills get a little rusty due to over-relying on the Laplace transform look-up table. Anyhow, let's tr...

2 years ago | 1

Answered
Why my plot is wrong if I decrease dt
Hi @cindyawati cindyawati Please check if the differential equations and the initial values are enterer correctly or not. % Ca...

2 years ago | 0

| accepted

Answered
Why my - tf2sym - command is not working?
Hi @Enes Emre Öztürk, I guess you want to convert the transfer function to state-space nodel. Gs = tf(1, [1 10 27 18]) %% Me...

2 years ago | 0

Answered
How to use System Identification to estimate System Model with Process Variable (PV), Set Point (SP), and Output (OP) actual data over certain period?
Hi @Kiky Agustina Putri According to this article, a control system has three variables: the setpoint (SP), the process variabl...

2 years ago | 0

Answered
0% pwm output in pwm control of dc motor in fuzzy logic control
Hi @ser I've been contemplating the use of Mamdani FIS, particularly in the context of driving the PWM output from 0% to 100%, ...

2 years ago | 0

| accepted

Answered
Multiplying and finding inverse of a matrix.
Hi @Omar Just wanted to share the three methods I sometimes use to compute the matrix inverse. G = [0.3 0 -0.2 0; ...

2 years ago | 0

Answered
how to find intersect with 2 lines
Hi @JEEVITHA If you post like this, your question will likely be closed by the mods later. Please plot the circle and the recip...

2 years ago | 1

Load more