Réponse apportée
SS2TF Error
If you want the numerical answer, then don't even bother with the symbolic stuff. Just assign values to the variables R1, R2, C...

plus de 5 ans il y a | 0

Question


Can a Comma Separated List be Generated Directly from a sym Array?
Can a comma separated list be generated directly from a sym array for use as input to a sym function? >> xvar=sym('x',[1 4]) ...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to multiply transfer function in matrix form?
The result you seek can be found by (after running the code in the original question): >> minreal(Dc) ans = -40.36...

plus de 5 ans il y a | 0

Réponse apportée
Gaussian Mixture Model using gmdistribution
Try this: >> mu=[6.25;4.33]; >> sigma=reshape([0.52 0.37],1,1,2); % third dimesion required, note that sigma are VARIANCES pe...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Transfer Function and step response
You need the the Control System Toolbox.

plus de 5 ans il y a | 0

Réponse apportée
conversion between state space and transfer function
An infinite number of state space realizations correspond to a single transfer function. From a transfer function, the Control S...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Feedback command for MIMO systems in MATLAB
I think this does what you want (assuming negative feedback) Pitch_State = STATE_SPACE_MODEL({'x';'Theta'},'Pitch Torque') PIT...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Can I define the initial condition at a nonzero point using Simulink integator?
Look at using the Start Time parameter on the Solver Pane (link). As best I can tell, it will do exactly what you want; initial...

plus de 5 ans il y a | 0

Réponse apportée
Fast Fourier Transform Zero Padding
Try changing these lines: L = length(O2_exp); Y = fft(O2_exp); to L = nfft; % select nfft > numel(O2_e...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Simulink control with moving average
A difference equation of the form y(k)=(c0*u(k)+c1*u(k-1)+c2*u(k-2)+c3*u(k-4)+c4*u(k-4))/D can be implemeted with one of the b...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
State Space with Disturbance
Combine d and u into a single input vector: Xdot = A*X + [B F] * [u;d] y = C*X + [D 0]*[u;d] % assuming the disurbance doesn'...

plus de 5 ans il y a | 4

| A accepté

Question


Why Would fplot(f) and fplot(vpa(f)) Show Different Results?
I'm seeing different results between fplot for a symfun object, the fplot of the vpa form of that object, and the regular old pl...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How do you do Unity Feedback on Matlab? (Transfer Functions)
Check the doc page for feedback() doc feedback In this case, the feedback line isn't "empty," it has a gain of 1 (or if you pr...

plus de 5 ans il y a | 0

Réponse apportée
Illustration of Frequency Response (magnitude and phase response)
if you wnat to plot them yourself, then use plot(), or semilogx() or whatever plotting function meets your needs. Or you can de...

plus de 5 ans il y a | 0

Question


Peculiar Result with Solve (Symbolic Math Toolbox) with Three Equations and Three Unknowns. Can Anyone Explain?
Suppose I have three equations and three unknowns as so: >> syms X1 X2 X3 real >> e1 = X1/(X1 + X2 + X3) == 0.1; >> e2 = X2/(...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Generation of Conditional Random Variables
Based on this comment, the problem is as follows: Let Xi be a set of independent, continuous random variables, i = 1-n. Let wi...

plus de 5 ans il y a | 1

Réponse apportée
How do I stop a signal after a fixed time and let the simulation continue?
Use a Switch block: https://www.mathworks.com/help/simulink/slref/switch.html

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Model Linearisation - Open Loop Input and Input Pertubation has the same input values ?
The linear analysis points (Input Perturbation, etc.) only apply for linearizing the model. They don't have any impact when runn...

plus de 5 ans il y a | 0

Réponse apportée
How to obtain Real and Imaginary parts of symbolic polynomial
From the context of the code, it appear that w is a real number. Assuming it being so will help: >> syms s syms w real poly...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
fft of Rectangle*sin function in MATLAB
It appears that you want to find the Continuous Time Fourier Transform of a windowed cos wave, where the window covers an intege...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Error when using find function
Maybe you want to start with ismember? doc ismember

plus de 5 ans il y a | 0

Réponse apportée
how to use ss and lsim for 1 dof differential equation
That lsim command calculates y using default initial conditions x(0) = xdot(0) = 0, but the analytical solution clearly doesn'...

plus de 5 ans il y a | 0

| A accepté

Question


Given One Partition of a Matrix, What is the Best Way to Find a Second Partition that Ensures the Matrix is Nonsingular?
Suppose I have a matrix C, dimension m x n, m < n, and that rank(C) = m. I wish to find a marix V, dimension n-m x n, such that...

plus de 5 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
Lsim gives NaN for square input
Look at the eigenvalues of the plant matrix: >> eig(sys) ans = -6.846331220081878e+07 -5.237359879589575e+07 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Invalid use of operator in for loop
You're geting the error because that's the wrong syntax for a for loop: doc for Having said that, it kind of looks like you re...

plus de 5 ans il y a | 1

Réponse apportée
How do I find the LTI system using deconv, when it is connected to more systems and with the final impulse response?
I think heaviside is function from the Symbolic Math Toolbox, but I don't see any symbolic variables defined. In any case, perha...

plus de 5 ans il y a | 0

Réponse apportée
Simulink Difference Equation Implementation
Maybe this example will help, which essentially illustrates the comment made by Alvery. Consider a plant P(s) = 1/(s + 5) that ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Simulink with control system designer: Step response is completely flat.
The block diagram has an Open-loop Input at the input to the plant (on the line marked "u + d") so the response from any input t...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
How to chose one form of transfer function from other forms
You don't need to get the num and den explicitly using tfdata (unless you need them for some reason). To convert from ss to tf: ...

plus de 5 ans il y a | 1

Réponse apportée
Error using acker System must be single input.How can I solve this problem ?
Try using the place command: doc place

plus de 5 ans il y a | 0

Charger plus