Respondida
I need to derive the equation of motion that describes the movement of the lower leg as a function of theta in order to calculate and plot displacement,velocity,acceleration?
Hi, I don't think that MATLAB has a toolbox to intelligently search and derive the mathematical model from a list of all governi...

casi 4 años hace | 0

Respondida
Finding root of nonlinear functions
Hi @University Glasgow Read about fzero(). https://www.mathworks.com/help/optim/ug/fzero.html The solution may look like this...

casi 4 años hace | 1

Respondida
What is the best function of the following shape?
Hi @M The original code was accidentally highlighted and deleted due to sensitive touchpad. It was constructed based on @Torste...

casi 4 años hace | 2

| aceptada

Respondida
Tuning PI, PD, PID controller
Not sure what happened. But it works for both auto and manual tuning. % Plant Gp = tf(1, [1 10 20]) % PID (Auto) Gc1 = ...

casi 4 años hace | 0

Respondida
Is there a way to see and understand the steps of reduction while this equation gets solved for V? The result should be somewhere around 6. Thank you.
Hi @Karl The equation is super long with many parentheses and it's hard to interpret without spaces. Maybe you can view it this...

casi 4 años hace | 1

| aceptada

Respondida
How to find RMSE of ground robot simulation ..?
Hi @Paarth Perhaps you are talking about the mobile robot's travelled path and the planned path. This probably works provided ...

casi 4 años hace | 0

Respondida
Create a graph with square function of period different to 2π
Hi @Ricard Escriva Maybe like this? t = linspace(0, 24, 2401); duty1 = 100*10/24; % 10 hours in percentage dela...

casi 4 años hace | 1

| aceptada

Respondida
How can i combine 5 curves in one figure?
Hi @Maria, I didn't clean up the code. But more or less, the hold is used. You can also set the LineColor so that it appears as...

casi 4 años hace | 1

| aceptada

Respondida
How can I integrate a function related to the modified bessel function of the first kind?
Hi @祥宇 崔 Have you checked if this besseli() function for Modified Bessel function of first kind is applicable for your case? h...

casi 4 años hace | 1

Respondida
Settling time of response.
Hi @shahin sharafi I don't know how your DDE system is modeled, but you can probably try something like this to locate the posi...

casi 4 años hace | 0

Respondida
Dear researchers, how can can I simulate nonlinear disturbance observer for UAV on Simulink?
Hi @ALABA PHILIP OPAYEMI There are two Dryden Wind Turbulence Model blocks: one is continuous and the other is discrete. Check ...

casi 4 años hace | 2

Respondida
for simulation of pid controller what should I use N filter coefficient value 1 or 100?
Hi @SASANK DAS, I don't know your Buck Converter model. However, in this example, the filter divisor is 751. Generally, the va...

casi 4 años hace | 0

Respondida
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki Thanks for your vote. You can use the gensig() function to generate the sine wave input, and then use lsim()...

casi 4 años hace | 1

Respondida
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki If you find the performances and tuning are acceptable, please consider voting 👍 the Answer. Thanks! The Pl...

casi 4 años hace | 2

Respondida
Integration of system of ODEs fails, unable to meet integration tolerances
Hi @Luca Biddau There is nothing wrong with the assumption of the equation. However, the idealized differential equation of the...

casi 4 años hace | 1

Respondida
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki Since you have state-space model, it is recommended to implement linear state-space system using the State-S...

casi 4 años hace | 2

| aceptada

Respondida
How to use LQR regulator for nonlinear system?
Hi @Dario You just need the lqr() function to compute the gain matrix . Once it is obtained, you can extract the gain values fo...

casi 4 años hace | 1

| aceptada

Respondida
Use simulannealbnd without specifying the Upper andd lower bound
Hi @Subrat Bastola There is no issue in this example. Perhaps, try clearing lb and ub variables from the Workspace. fun = @(x)...

casi 4 años hace | 0

Respondida
bode plot of simulink model using matab commands (codes)
Hi @Mahdi Zolfaghari This is an example to get the Bode plot with MATLAB code: Gp = tf([1 3], [1 2 3 0]) bode(Gp) margin(Gp)...

casi 4 años hace | 0

Respondida
Solving the system axy=x+y, bzw=z+w, cyz=y+z, dxw=x+w
Hi @mehrdad hosseini, It will be helpful if you can type out the nonlinear equations in MATLAB first. See the example here, a...

casi 4 años hace | 0

Respondida
I couldn't understand the problem in it? and I did't know where I should put the "o" ?
Hi @SAHIL SAHOO I guess that is an error in your ode argument, things that are inside the brackets of ode45(). I believe 'o' s...

casi 4 años hace | 0

Respondida
bisection method code help
Hi @Angelina Encinias, I did not change anything. The bisection code works for a simple test below to find : fcn = @(x) sin(...

casi 4 años hace | 0

Respondida
Simple question: How to set the complex part = 0 in an array?
Hi @Ashfaq Ahmed How about like this? a = [2+0i; 3+3i; 5+0i; 8-4i; 6+9i] b = real(a)

casi 4 años hace | 3

| aceptada

Respondida
Bisection method for finding angle
Hi @Angelina Encinias This should help you to visualize how to approach the problem. Since the solution space is between 0° and...

casi 4 años hace | 0

Respondida
How to use Bode plot with exponential complex funtion
Hi @David Oestlund Maybe like this: R = 2; C = 3; G = tf([R*C 0],[R*C 1], 'InputDelay', 3) margin(G)

casi 4 años hace | 0

Respondida
Placing Obstacles in XY plot in Simulink with Obstacle Block
Hi @T.R.O You have an unclosed question on the robot trajectory: https://www.mathworks.com/matlabcentral/answers/1788465-mobil...

casi 4 años hace | 0

Respondida
How do I make a user-defined square wave generator in simulink model?
Hi @Rakib Perhaps you can try this one: tau = 20; % period of the square wave Ts = tau/(2^10); % 2^10 samples pe...

casi 4 años hace | 0

Respondida
How can I get the function g(x) (way to solve functional equation)
Hi @봉훈 정 Not sure if this is what you want. If is an even function (as explained by @Chunru), where the graph is symmetric wit...

casi 4 años hace | 1

| aceptada

Respondida
During simulation of mathematical model occuring following error
@Kunal Vasudeo Mahajan The evolution of the states due to one or some unknown singularity-induced terms (something happened in ...

casi 4 años hace | 0

Respondida
Mobile robot tracking behavior in XY graph
Hi @T.R.O You can try generating the Cubic Polynomial Trajectory. Check this example and see if it is good enough or suitable f...

casi 4 años hace | 0

Cargar más