Answered

How to solve Ax=B with some knowns in x and B

The original question that you asked is inconsistent with your comment to John's answer. The question specfies only a total of ...

How to solve Ax=B with some knowns in x and B

The original question that you asked is inconsistent with your comment to John's answer. The question specfies only a total of ...

2 months ago | 0

Answered

How to plot from txt file using textscan?

I’ve been having a lot of success lately in these types of problems by using extractFileText to read it all into a string, and t...

How to plot from txt file using textscan?

I’ve been having a lot of success lately in these types of problems by using extractFileText to read it all into a string, and t...

2 months ago | 0

Answered

Find Eigenvalues without function "eig"

roots(poly(A)) Though I’m sure one could come with an A for which this approach will fail due to numerical accuracy issues....

Find Eigenvalues without function "eig"

roots(poly(A)) Though I’m sure one could come with an A for which this approach will fail due to numerical accuracy issues....

2 months ago | 0

Answered

How to use matlab to calculate a gain, to a specific limit of a transfer function?

You can use evalfr(minreal(sys),f) f is the complex frequency to which you want to take the limit. The minreal is to...

How to use matlab to calculate a gain, to a specific limit of a transfer function?

You can use evalfr(minreal(sys),f) f is the complex frequency to which you want to take the limit. The minreal is to...

2 months ago | 0

Answered

Plotting second order ode response

f=matlabFunction(y); t=0:.001:1; plot(t,f(t)),grid If you have the Control System Toolbox: step(tf(36,[1 12 36]))

Plotting second order ode response

f=matlabFunction(y); t=0:.001:1; plot(t,f(t)),grid If you have the Control System Toolbox: step(tf(36,[1 12 36]))

2 months ago | 0

| accepted

Question

Should Implicit Expansion be Applied to Additional Functions?

I know that some don't like implicit expansion. Given that it's likely here to stay, should it be made applicable to some additi...

2 months ago | 2 answers | 0

Answered

Second Order Differential Equation with Constant to Transfer Function

If c2 is a constant, there is no transfer function from U to Y because that is not the differential equation for a linear, time ...

Second Order Differential Equation with Constant to Transfer Function

If c2 is a constant, there is no transfer function from U to Y because that is not the differential equation for a linear, time ...

2 months ago | 0

Answered

what is the sampling frequency limit in 'c2d' cmd for a stable discrete system?

It appears to be a numerical issue when using c2d with you transfer function model. Try converting to state space first: sys = ...

what is the sampling frequency limit in 'c2d' cmd for a stable discrete system?

It appears to be a numerical issue when using c2d with you transfer function model. Try converting to state space first: sys = ...

2 months ago | 1

| accepted

Answered

c2d function 'zoh' method formula

I suspect that in your first case for C the substitution you cite is only applicable because of the form of C. In general, the Z...

c2d function 'zoh' method formula

I suspect that in your first case for C the substitution you cite is only applicable because of the form of C. In general, the Z...

2 months ago | 0

| accepted

Question

How Can I Save a Struct Array to a Text File?

I have a struct array. Each field in the struct arrray is a column vector, and the column vectors are of unequal lengths. s(1)...

2 months ago | 1 answer | 0

Question

How Can I Zoom with Multiple Axes on a Plot

I create a plot and add a secondary x-axis. The code for the secondary x-axis came from dbp in a post that for the life of me I...

2 months ago | 1 answer | 0

Answered

Diagonalising a Skew-Symmetric Matrix

For your matrix B, you can diagonalize it and get the associated trasnsformation matrix as follows: [T,J]=jordan(B); any(any...

Diagonalising a Skew-Symmetric Matrix

For your matrix B, you can diagonalize it and get the associated trasnsformation matrix as follows: [T,J]=jordan(B); any(any...

2 months ago | 0

Answered

Delayed step/ impulse response

Use the time invariance and lineraity properties of an LTI system. One approach is to generate the the nominal impulse or step r...

Delayed step/ impulse response

Use the time invariance and lineraity properties of an LTI system. One approach is to generate the the nominal impulse or step r...

2 months ago | 0

Answered

simulink/simscape final state 'cannot find a matching block state to element 135' output by the same model

Are you trying to use operatining points? If you are: Comparing your code to the examples in that link to the doc two things st...

simulink/simscape final state 'cannot find a matching block state to element 135' output by the same model

Are you trying to use operatining points? If you are: Comparing your code to the examples in that link to the doc two things st...

3 months ago | 0

| accepted

Answered

How to obtain output data sample given the input data samples and a transfer function in Z-domain?

G=tf(2,[1 1],-1,'Variable','z^-1') G = 2 -------- 1 + z^-1 Sample time: unspecified Discrete-time transfe...

How to obtain output data sample given the input data samples and a transfer function in Z-domain?

G=tf(2,[1 1],-1,'Variable','z^-1') G = 2 -------- 1 + z^-1 Sample time: unspecified Discrete-time transfe...

3 months ago | 0

| accepted

Answered

How to start a simulation in steady-state ?

Is this what you're looking for? https://www.mathworks.com/help/simulink/ug/saving-and-restoring-simulation-operating-point.htm...

How to start a simulation in steady-state ?

Is this what you're looking for? https://www.mathworks.com/help/simulink/ug/saving-and-restoring-simulation-operating-point.htm...

3 months ago | 0

| accepted

Answered

Symbolic seems to have an error

The RHS of your differential equation should be 3*u. In the frequency domain, Y(s) = H(s)*U(s). It looks like you're trying to ...

Symbolic seems to have an error

The RHS of your differential equation should be 3*u. In the frequency domain, Y(s) = H(s)*U(s). It looks like you're trying to ...

3 months ago | 0

Answered

How can i plot a impulse response based on z-transfer function or difference equation

G = tf([1 2 3 0 0],[1 0 0 0 -1],-1); impulse(G,20)

How can i plot a impulse response based on z-transfer function or difference equation

G = tf([1 2 3 0 0],[1 0 0 0 -1],-1); impulse(G,20)

3 months ago | 1

| accepted

Answered

How to solve a transfer function equation in Matlab

The function allmargin in the Control System Toolbox solves for abs(H(jw)) = 1 (among other things) >> G G = ...

How to solve a transfer function equation in Matlab

The function allmargin in the Control System Toolbox solves for abs(H(jw)) = 1 (among other things) >> G G = ...

3 months ago | 0

| accepted

Question

Is there a Way to Determine Which Function Will be Called Without Actually Calling the Function ?

Suppose there is a function myfunc that has many instantiations on the path because of overloading. Is there a way to determine ...

3 months ago | 2 answers | 1

Question

Can the Font Size of an Axis Label be Reliably Determined Programatically

AFAICT, there are three ways to set the font size of an axis label and there are three ways to get the font size of an axis labl...

3 months ago | 1 answer | 2

Answered

Magnitude and Phase response of a Lowpass filter

it sounds like there are two issues here: 1. estimating a frequency response using test inputs, 2. what does lowpass do. Let's t...

Magnitude and Phase response of a Lowpass filter

it sounds like there are two issues here: 1. estimating a frequency response using test inputs, 2. what does lowpass do. Let's t...

3 months ago | 1

| accepted

Answered

How Can I add input disturbance for a given specific time gap on a second order transfer function

Do either of these options do what you're looking for? s=tf('s'); wn=6; z=2/3; Gs=wn^2/(s^2+2*z*wn*s+wn^2); % define a ti...

How Can I add input disturbance for a given specific time gap on a second order transfer function

Do either of these options do what you're looking for? s=tf('s'); wn=6; z=2/3; Gs=wn^2/(s^2+2*z*wn*s+wn^2); % define a ti...

3 months ago | 0

Answered

Analysis of the stability of the system characterized by the transfer function

Does this do what you want: >> nyquist(G) >> [P,Z]=pzmap(G);hold on;plot(real(P),imag(P),'x'),plot(real(Z),imag(Z),'o')

Analysis of the stability of the system characterized by the transfer function

Does this do what you want: >> nyquist(G) >> [P,Z]=pzmap(G);hold on;plot(real(P),imag(P),'x'),plot(real(Z),imag(Z),'o')

3 months ago | 0

Answered

eigen value of the transfer function 2x2 matrix

If you want to use the symbolic appoach, why not just create a matlab function to evaluate lambda(2) and then create the plot us...

eigen value of the transfer function 2x2 matrix

If you want to use the symbolic appoach, why not just create a matlab function to evaluate lambda(2) and then create the plot us...

3 months ago | 0

| accepted

Answered

Why do I get different outputs with bilinear and c2d(sysc,Ts,'Tustin') MATLAB functions?

The state space realization of a linear system is not unique. However, you can compare the results from both methods and show t...

Why do I get different outputs with bilinear and c2d(sysc,Ts,'Tustin') MATLAB functions?

The state space realization of a linear system is not unique. However, you can compare the results from both methods and show t...

4 months ago | 0

Answered

simulation on matlab (not on simulink)

If have the a license for the Control System Toolbox you can use the connect function to build the model you want from a block d...

simulation on matlab (not on simulink)

If have the a license for the Control System Toolbox you can use the connect function to build the model you want from a block d...

4 months ago | 0

Answered

Easier way to remove a response from a response plot (bodeplot, stepplot, etc.)?

Does this do what you want: delete(h.Responses(idx))

Easier way to remove a response from a response plot (bodeplot, stepplot, etc.)?

Does this do what you want: delete(h.Responses(idx))

4 months ago | 0

| accepted

Answered

How to compute control system's performance parameters?

stepinfo(y,t) If you want to use the output from step. Note that stepinfo using the transfer function gives a peculiar result ...

How to compute control system's performance parameters?

stepinfo(y,t) If you want to use the output from step. Note that stepinfo using the transfer function gives a peculiar result ...

4 months ago | 0

Answered

convolution of Heaviside function

Why are do you have a negative sign in the equation for c? You need to scale the discrete convolution, i.e., the output of conv...

convolution of Heaviside function

Why are do you have a negative sign in the equation for c? You need to scale the discrete convolution, i.e., the output of conv...

4 months ago | 1

| accepted