Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Why is the numerator coefficient array returned by scipy.signal.cont2discrete two dimensional?

I'm converting a continuous-time dynamical system to discrete time using the function cont2discrete from Scipy's signal processing library. dt = 0.1 num, den, dt = scipy.signal.cont2discrete(([1], [5, ...
Bill's user avatar
  • 11.7k
0 votes
0 answers
17 views

How to accurately draw a Bode diagram of a control system in MATLAB in the case of its matrix being ill-conditioned?

I'm trying to draw a bodeplot of a discrete contorl system with the "ss" and "bodeplot" function: % X(k+1) = AX(k)+Bu(k) % y(k) = CX(k)+Du(k) sys_d = ss(m_A, m_B, m_C, m_D, Ts); h1 ...
FFFENG's user avatar
  • 1
0 votes
0 answers
35 views

In matlab simulink how can I use an inport as a coefficient in a transfer function?

I have a fairly simple transfer function to model in matlab. It's this: K_in/(M*s+1), where M is a defined variable and K_in is an inport. In simulink it looks like this: K_in -----> Tranfer fcn: 1/...
FirmwareRootkits's user avatar
0 votes
0 answers
19 views

Unable to find inverse Laplace transform of function MATLAB

I would like to take the inverse Laplace transform of the following: The result after running z_use = ilapace(Z_use) is: MATLAB is unable to take the full inverse Laplace transform. Is there ...
Jonathan Frutschy's user avatar
0 votes
0 answers
31 views

Signal processing; block structure. Finding the transfer function to the system

The implementation scheme for a causal LTI digital system with one input, x[n], and one output, y[n] is shown in Figure P3. In the figure, z−1 represents a unit sample delay and α is a scalar constant....
Julius Lunde Søgaard's user avatar
1 vote
1 answer
89 views

Find Eigenvalues of ODE45 Solution MATLAB

I have the following non-linear ODE: I have the following ODE45 solution: fun = @(t,X)odefun(X,K,C,M,F(t),resSize); [t_ode,X_answer] = ode45(fun,tspan,X_0); The input matrices are stiffness K(X), ...
Jonathan Frutschy's user avatar
0 votes
1 answer
111 views

Find Transfer Function from FFT Plot MATLAB

I have the following FFT plot: I don't know if this is possible, but I would like to find a transfer function from this FFT plot in MATLAB. This is what I have done so far: np = 2; % number of poles ...
Jonathan Frutschy's user avatar
1 vote
1 answer
312 views

Series digital filtering: how to combine the transfer function coefficients of each filter?

I'm performing two filtering steps in series, in Matlab. First a Butterworth filter, then a ChebyschevII filter. The functions butter() and cheby2() return the transfer function coefficients b (...
tehgankerer's user avatar
6 votes
0 answers
231 views

How can I extract elements from a transfer function matrix in Octave?

I am working with Octave in the control package, and I want to take an array of transfer functions (initialized as follows) and just extract the diagonal elements of the matrix. Whenever I try to do ...
Justin T's user avatar
  • 111
0 votes
2 answers
265 views

MATLAB tf command and exponentials

I must be missing something obvious but why does MATLAB have these two different behaviors? Compare, >> s = tf('s'); >> G = exp(-2.1*s)/(s+10) G = 1 exp(-2.1*s) * ---...
ITA's user avatar
  • 3,870
0 votes
1 answer
473 views

Settling time is not displaying on the step response graph

I am graphing the step response of a closed loop system and I need to display the settling time on the graph for my assignment. Here is my code: s = tf('s') L = (20*(s+1))/(10*s*(s-1)) T = L/(1+L) ...
Gamer's user avatar
  • 45
-2 votes
1 answer
445 views

Matlab get transfer function from Simulink

Is it possible to use MATLAB to retrieve the data from Simulink from this block diagram and plot the transfer function? I have already tried using tf, but that did not work. res = sim("Test.slx&...
Dario's user avatar
  • 1
0 votes
1 answer
268 views

Numerator and denominator input syntax of matlab control system : (num,den)

I have seen the following form of writing in many matlab routines: for example, I have a system function num=1; den=[1 0 0]; sys=tf(num,den) If I want to show the step response, or bode plot, I just ...
zymaster's user avatar
0 votes
1 answer
551 views

Python Transfer Function with exponential term in the numerator

transfer function How would I input this transfer function in python? I'm having trouble with the exponential term in the numerator. I'm currently using the python control systems library; is it ...
hassam's user avatar
  • 1
0 votes
0 answers
223 views

How to convert a np.meshgrid() function to a complex function?

I'm trying to create a script that plot a 3D magnitude surface graph of a transfer function using python. I used as an example for my code, this other code made for matlab that works. #Example using ...
Sildek's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
8