Risposto
Converting a nonlinear state equation into state dependent matrix form
Hi @Md Sabbir Haider Based on your descriptions, it is entirely acceptable to use the nonlinear state equations for simulation ...

oltre un anno fa | 0

Risposto
Stepinfo provides wrong rise time using [0, 0.63] limits for non minimum phase systems
Hi @Ken Buckholtz Rise time is a non-standard performance measure. By default, in MATLAB, rise time is defined as the duration ...

oltre un anno fa | 0

Risposto
please ,write a code to 3D plot this file .
I am unsure about the specific type of 3D plot you require. I reviewed your previous questions and found that you have already l...

oltre un anno fa | 0

Risposto
How to solve Coupled Differential Equations
Hi @Lorenzo Primarily, coupled ordinary differential equations (ODEs) in additive form can be decoupled using the substitution ...

oltre un anno fa | 0

Risposto
how can i simulate feedback system with fuzzy controller in m file without simulink?
Hi @mohamed al-asklany If the fuzzy controller (or the *.fis object) has been designed, it is straightforward to implement it ...

oltre un anno fa | 0

| accettato

Risposto
Plot the function on graph
Look up the documentation plot(). There are plenty of simple examples that you can learn to plot it yourself.

oltre un anno fa | 0

Risposto
PSO algorithm MPPT change irradiation condition
Hi @DIMAS You are likely seeking general solutions without needing someone to guide you through the process step-by-step. The d...

oltre un anno fa | 0

Risposto
How i can talk to support of Matlab website?
Hi @salim saeed I would like to add that when you share your scripts, code, models, or graphics, you grant forum users the righ...

oltre un anno fa | 1

| accettato

Risposto
Rotary Inverted Pendulum State Space Model PID Control
Hi @Burak Mert If no other control requirements are specified, the objective is to "freely" find any combination of gain values...

oltre un anno fa | 0

Risposto
Evolutionary learning tools or aids
If you are looking for a built-in function for optimizing solutions based on learning principles inspired by biological evolutio...

oltre un anno fa | 0

Risposto
Step response is not showing up in the legend of my plot
I tried plotting both to display on the same graph and inserted the legends. There's no problems so far. legend('simulated', 'e...

oltre un anno fa | 0

Risposto
Fit a standard exponential fit to approximate data
Hi @Reji G You can use the approach described by @William Rose. Alternatively, you can use the envelope() function. The followi...

oltre un anno fa | 1

Risposto
minimizing with genetic algorithm
Hey @dal For time-invariant real-valued univariate functions, it is recommended to plot the graph to estimate the approximate l...

oltre un anno fa | 0

Risposto
When plotting functions like 1/sin(x), how can I remove the vertical lines at the points of discontinuity?
Use fplot(). fplot(@(x) 1./sind(x), [-359 359]), grid on, xlabel('degree') % d = -345:30:345; % x = deg2rad(d); % y = ...

oltre un anno fa | 0

Risposto
how do divide like this picture by code matlab?
Hi @Vuong If this is a topic of Finite Element Analysis, then look up generateMesh() and pdemesh(). gm = fegeometry(@lshapeg);...

oltre un anno fa | 0

Risposto
Have successfully used ode45 once in this code, but with the same size parameters am getting an error about initial conditions vector being longer than the return vector.
Hi @Raoul There is no error in organizing the code structure clearly with constants and states (variables that change over time...

oltre un anno fa | 0

Risposto
Controllable Companion form for a MIMO system
Hi @naiva saeedia The following is the result returned by compreal: %% Original state-space Plant A = [-0.978707531551846 ...

oltre un anno fa | 0

Risposto
Initial Oscillations in Closed Loop Control Model
Hi @Mariangela Plot the vector field, and you should be able to understand the instantaneous dynamics at each point in the phas...

oltre un anno fa | 0

Risposto
PID tuning to meet conditions for settling time and overshoot while a stable system with minimum peak time and zero velocity error.
Hi @Ashaya KC Here is the solution using pidtune(). There is no direct way to input the desired settling time and overshoot per...

oltre un anno fa | 0

| accettato

Risposto
PID tuning to meet conditions for settling time and overshoot while a stable system with minimum peak time and zero velocity error.
Hi @Ashaya KC Let's first use the ideal mathematical solution and then compare it to your solution obtained using the pidtune()...

oltre un anno fa | 0

Risposto
having problem plotting ramp function
Hi @Tien Yin The signal in the image is a piecewise function that consists of three sub-functions defined over different interv...

oltre un anno fa | 1

Risposto
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 ...

oltre un anno fa | 0

Risposto
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...

oltre un anno fa | 0

Risposto
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...

oltre un anno fa | 1

Risposto
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...

oltre un anno fa | 2

Risposto
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...

oltre un anno fa | 1

Risposto
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...

oltre un anno fa | 0

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

oltre un anno fa | 0

| accettato

Risposto
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...

oltre un anno fa | 1

Risposto
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...

oltre un anno fa | 1

| accettato

Carica altro