Risposto
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);

oltre un anno fa | 0

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 1

| accettato

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 1

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

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

oltre un anno fa | 2

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

oltre un anno fa | 0

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

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

oltre un anno fa | 0

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

oltre un anno fa | 0

| accettato

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

oltre un anno fa | 0

Carica altro