Answered
Problem with derivative block simulink
Hi @Purvaja Based on the information provided by the OP, I will likely construct the model as illustrated. However, if the refe...

2 months ago | 1

Answered
How to use the integrating option in a closed-loop PID autotuner?
Here is the difference between stable plants and integrating plants: %% Stable Plant (all eigenvalues have negative real part) ...

2 months ago | 0

Answered
I need help for drawing a constraint in Matlab in 2D
Hi @nadia nadi You should replace the p3 line with this: p3 = 3/2*ones(1, numel(x1(1,:))); ... plot(p3, x1(1,:)) clear...

2 months ago | 0

| accepted

Answered
Request for MATLAB Code of Elephant Search Algorithm (ESA)
Hi @Sina The most effective approach is to contact the authors, as the algorithm was originally coded in MATLAB. They would ben...

2 months ago | 1

Answered
solve algebric loop error
Hi Shabina, The error suggests that you have incorrectly modeled the dynamic system, resulting in a singularity. This is ...

2 months ago | 0

Answered
"Hold Value" of a Fuzzy Control while no rule is active
Hi @Daniel If none of the rules is triggered for any output, the defuzzified output value will default to its mean range value,...

2 months ago | 0

Answered
Error using type too many output arguments
Possibly syntax error. The strcmpi() function is used to compare strings. So, you need to place the texts in double quotes. %va...

2 months ago | 0

Answered
iztrans giving unexpected outputs
Another way is to provide a proof by contradiction. Misprints can happen due to a lack of proofreading. syms n f1 = n*(-1)^...

2 months ago | 0

| accepted

Answered
Liquid Hydrogen Fuel Station
Hi @Shiva Kumar Bairoju Like @Yifeng Tang, I'd also suggest modeling this system using Simscape, as the entire hydrogen refueli...

2 months ago | 0

Answered
Incorrect y intercept using fitlm
Extend the line, and you will see the y-intercept at . % Example data (replace with your actual data) xData = [1, 2, 3, 4, 5, ...

2 months ago | 0

| accepted

Answered
Numerical solution to coupled non linear differential equations
Hi @Atharv Although I don't understand your robotic dynamics, but based on your ODEs, I see that is present in the highest ord...

3 months ago | 0

Answered
Matlab Dimpulse function documentaion not found
Hi @Md. Ikrama Hossain For your information, the current version of the impulse() function can be applied to both continuous-ti...

3 months ago | 0

Answered
how to access variables from simout - simulink simulation running programatically
Try this %% Data sent to Workspace toWksData = out7_1_1.simout; or this toWksData = get(out7_1_1, simout);

3 months ago | 0

Answered
can't write "hat", "tilde", "bar" in the title of the figure
I have problem with the GUI in past releases. I usually type out the syntax on the Command Window. title('$\hat{\theta}_{estim}...

3 months ago | 0

| accepted

Answered
How to plot and find zeros of a complex polynomial?
Hi @simran I am unsure whether a symbolic approach exists. However, to use the fsolve() function, you need to provide initial g...

3 months ago | 0

Answered
Fuel cell system efficiency increasing at increasing altitude
Hi @Vyom Desai We are uncertain where to begin in reviewing the code, as all the essential calculative steps for determining sy...

3 months ago | 0

Answered
find the minimum of polynomial.
For a two-degree polynomial (quadratic) in the form of "y = ax^2 + bx + c", the formula to find the minimum value is: min = c - ...

3 months ago | 0

Answered
Simulink summing block - how to get negative input at the top of the summing block?
Hi @Kenny Enter this:

3 months ago | 1

| accepted

Answered
How to use the magicformula as a MATLAB function in simulink
There are two versions of the 'Magic' formulas. Can you mathematically derive ​ from their outputs? If so, you can write the der...

3 months ago | 0

Answered
Finding the points where Bessel functions are equivalent
Hi @Matthew I revisited your approach using vpasolve(), but I provided an initial guess that is close to the solution, as illus...

3 months ago | 0

Answered
Finding the points where Bessel functions are equivalent
Hi @Matthew You might consider approaching the problem as finding the minimum point of a convex function. I have used both ga()...

3 months ago | 0

Answered
How to find the Linear Analysis Tool
Most likely because you haven't installed the Simulink® Control Design™ tool/software.

3 months ago | 0

Answered
Simulink Threshold with action
Naturally, I would expect that the input signal evolves over time and that the thermostat-like controller performs a switching a...

3 months ago | 0

Answered
I made it pretty far in writing the code for an assignment. However, I am struggling to figure out how to finish the code. Can anyone show me how to finish it?
Hi @Antonio I believe that your app should allow users to input their parking start date-time and exit date-time, almost simila...

3 months ago | 0

Answered
Transport delay generate to matlab function
Hi @Enes I applied the modulo operation to the triangular membership function from the Fuzzy Logic Toolbox to create the equila...

3 months ago | 1

Answered
I want to take the square root of a transfer function
Hi @Calum Unlike plotting time responses using the step() and lsim() functions, or first solving the ordinary differential equa...

3 months ago | 0

Answered
Too many input arguments
Previously, the symbolic is undefined in the z(t) function. clear all; close all; syms k t z0=2; r=0.01; K=100; u=0.75; B=1...

3 months ago | 0

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

3 months ago | 0

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

3 months ago | 0

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

3 months ago | 0

Load more