Réponse apportée
plotting coordinates vs. time and i need my time to run with or without loop function repeatedly.
Hi @shane Generally, coordinates can be specified in 2D (planar) or 3D (spatial) formats. If you wish to plot the spatial coord...

12 mois il y a | 0

Réponse apportée
How to code a cantilever beam with lumped spring mass damper on the free end
Hi @Shrijit Generally, you can model beam dynamics using Euler-Bernoulli theory for long beams or Timoshenko–Ehrenfest theory f...

12 mois il y a | 0

Réponse apportée
ask intergral and derivate
Hi @승표 I used the ordinary differential equations (ODEs) from this PMSM example because they are similar to your case. Specifyi...

12 mois il y a | 0

Réponse apportée
multiple equations to steady-state system to transfer function
Hi @erin Part 1 of your code does not work because the tf() function from the Control System Toolbox is primarily used for crea...

12 mois il y a | 0

Réponse apportée
Use of functions ctrb and poly
No error message generated. You should provide yours to find out the actual issue. A = [ 0 1; -1 -2]; B = [ 0; ...

12 mois il y a | 0

| A accepté

Réponse apportée
How to find rise time in fractional order system, give matlab code?
Hi @SARAVANAN Once you have generated the response signals y(t) from the fractional order system, use the following syntax to d...

12 mois il y a | 0

| A accepté

Réponse apportée
deriving a transfer fuctnion
Hi @Plato This is a homework question. However, you can use the feedback() function to compute the closed-loop transfer functio...

12 mois il y a | 0

Réponse apportée
Distinguish the different curves and identify the points corresponding to each way
Hi @rana I now understand that you are seeking advice on graphically displaying the data. Here is an example of what I consider...

12 mois il y a | 2

Réponse apportée
How do you use To Workspace? (DC Shunt Motor)
The To Workspace block logs the signal connected to its input port to the workspace. To access the data logged by a To Workspace...

12 mois il y a | 0

Réponse apportée
Why doesn't Iref_sd = 0 when 0 is input to Tref and ωm in the ACIM control reference?
Hi @中嶋 Your and according to mathematical model of the AC Induction Motor (ACIM) Control Reference block, if the condition is...

12 mois il y a | 0

| A accepté

Réponse apportée
how to input a function as a parameter of a function
Hi @Tony Cheng Something like this: %% Script to call 'fMin1D' x0 = [1, 1]; [x, fval] = fMin1D(x0, @quadfcn) %% Minimize...

12 mois il y a | 0

| A accepté

Réponse apportée
How to implement an LQR controller when the system's state variables and control inputs have different units?
Hi @준호 Could you provide a simple code example involving lqr() to illustrate your concern? There should not be any issues with ...

12 mois il y a | 0

Réponse apportée
Simulink physical sys is stable even the Matlab model for the same sys is unstable
Hi @mohamed If at least one pole of the closed-loop system has a positive real part, the system is considered unstable. You may...

12 mois il y a | 0

Réponse apportée
How to implement MPC when the number of states is greater than the number of outputs?
Hi @준호 The MPC Controller still functions effectively even when the number of states exceeds the number of outputs. I have made...

12 mois il y a | 0

| A accepté

Réponse apportée
Stepinfo provides wrong rise time using [0, 0.63] limits for non minimum phase systems
Hi @Ken Buckholtz Here is another approach to estimating the user-defined rise time: by defining the 'RiseTimeLimits' and ident...

12 mois il y a | 0

Réponse apportée
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 ...

12 mois il y a | 0

Réponse apportée
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 ...

12 mois il y a | 0

Réponse apportée
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...

12 mois il y a | 0

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

12 mois il y a | 0

Réponse apportée
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 ...

12 mois il y a | 0

| A accepté

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

12 mois il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 1

| A accepté

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 1

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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 = ...

environ un an il y a | 0

Réponse apportée
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);...

environ un an il y a | 0

Charger plus