Answered

Amortization Schedule Function - wrong result?

Your solution will always yield the same result regardless of the what the user inputs to your function for loanAmount, loanTerm...

Amortization Schedule Function - wrong result?

Your solution will always yield the same result regardless of the what the user inputs to your function for loanAmount, loanTerm...

1 day ago | 0

Answered

Varying results for the same model

If you are using a variable step solver, including HRSG and ST can cause the outputs of GT1 and GT2 to change if HRSG and/or ST ...

Varying results for the same model

If you are using a variable step solver, including HRSG and ST can cause the outputs of GT1 and GT2 to change if HRSG and/or ST ...

1 day ago | 0

Answered

State space models are same?

This is actually not a trivial question. Two state space models sys1 = ss(A1,B1,C1,D1) and sys2 = ss(A2,B2,C2,D2) will have the ...

State space models are same?

This is actually not a trivial question. Two state space models sys1 = ss(A1,B1,C1,D1) and sys2 = ss(A2,B2,C2,D2) will have the ...

6 days ago | 0

Answered

Solving a linear system equations with variables on both sides

Similar problem discussed here

Solving a linear system equations with variables on both sides

Similar problem discussed here

7 days ago | 0

Answered

Matlab Overall Transfer Function script based on Simulink Block Diagram.

It would be much easier to see what you did if you posted your code instead of an image of your code. Looking at your derivatio...

Matlab Overall Transfer Function script based on Simulink Block Diagram.

It would be much easier to see what you did if you posted your code instead of an image of your code. Looking at your derivatio...

7 days ago | 0

| accepted

Question

What Does "Enable decoupled continuous integration" Mean?

"Enable decoupled continuous integration" is an option in the Simulink Solver pane. Can anyone explain what setting the paramet...

10 days ago | 0 answers | 0

Answered

Issue in a Simulink simulation.

Not sure what's going on, but the fact that the port names for the Car Dynamics block are capitalized but are are lower case in ...

Issue in a Simulink simulation.

Not sure what's going on, but the fact that the port names for the Car Dynamics block are capitalized but are are lower case in ...

10 days ago | 0

Answered

How can I combine strings in SIMULINK like in a MATLAB cell array?

According to this doc page Simulink does not support string arrays. However, it appears that you can pack them all into a bus i...

How can I combine strings in SIMULINK like in a MATLAB cell array?

According to this doc page Simulink does not support string arrays. However, it appears that you can pack them all into a bus i...

11 days ago | 0

| accepted

Answered

How to add exponential to a simulink model?

Use the Math Function block, select pow as the function. Top input is x, the bottom input is a constant 2/3.

How to add exponential to a simulink model?

Use the Math Function block, select pow as the function. Top input is x, the bottom input is a constant 2/3.

12 days ago | 0

| accepted

Answered

Recursion to compute convolution

Let the vector M be the distribution of integer valued X. For example, if X takes on values 1-6 uniformly, then M = ones(1,6)/6...

Recursion to compute convolution

Let the vector M be the distribution of integer valued X. For example, if X takes on values 1-6 uniformly, then M = ones(1,6)/6...

13 days ago | 0

Answered

feedback(sys1,sys2,feedin,feedout) MAYBE incorrect

It is correct. The plant model, sys, can be written algebraically as: Y(s) = G1(s)*U1(s) + G2(s)*U2(s) where G1(s) = G2(s) = 1...

feedback(sys1,sys2,feedin,feedout) MAYBE incorrect

It is correct. The plant model, sys, can be written algebraically as: Y(s) = G1(s)*U1(s) + G2(s)*U2(s) where G1(s) = G2(s) = 1...

16 days ago | 0

Answered

Linear Analysis Points in the linearization of a System in Simulink

Does this page help? If not, what are your specific questions about analysis points? Specify Portion of Model to Linearize

Linear Analysis Points in the linearization of a System in Simulink

Does this page help? If not, what are your specific questions about analysis points? Specify Portion of Model to Linearize

19 days ago | 0

Answered

Simulating a 1 degree step input on a state space system (using transfer functions)

Your original lsim command didn't really generate a step resonse. It generate the response to a positivie unit step input at t ...

Simulating a 1 degree step input on a state space system (using transfer functions)

Your original lsim command didn't really generate a step resonse. It generate the response to a positivie unit step input at t ...

20 days ago | 0

| accepted

Answered

alternate effect in simulink scheme

Generate both inputs into C2 and pass them through a Multi-Port Switch. Do the same for the inputs to the Scope. You can then s...

alternate effect in simulink scheme

Generate both inputs into C2 and pass them through a Multi-Port Switch. Do the same for the inputs to the Scope. You can then s...

20 days ago | 1

| accepted

Answered

Calculate confidence interval for gamma function

A few comments: With a = 1, b = 1, the variance of the distribution is 1, not 4 (as implied by your statement that the standar...

Calculate confidence interval for gamma function

A few comments: With a = 1, b = 1, the variance of the distribution is 1, not 4 (as implied by your statement that the standar...

22 days ago | 0

Answered

Multiplying sine wave with step function

Change one line to: xxuu = xx .* (t >= tstep); % set tstep as the time when the unit step is applied

Multiplying sine wave with step function

Change one line to: xxuu = xx .* (t >= tstep); % set tstep as the time when the unit step is applied

24 days ago | 1

Answered

Can anyone help me to solve the s in this non-linear equation? 1 + ((24.63/(15*s+1))*(2.73+(2.73/1338.17*s))*(1.797/(1323.17*s+1))*(0.123*exp(-50*s))) = 0

Are complex values of s allowed? If so, there might be some solutions. For example: >> f f = function_handle with valu...

Can anyone help me to solve the s in this non-linear equation? 1 + ((24.63/(15*s+1))*(2.73+(2.73/1338.17*s))*(1.797/(1323.17*s+1))*(0.123*exp(-50*s))) = 0

Are complex values of s allowed? If so, there might be some solutions. For example: >> f f = function_handle with valu...

24 days ago | 1

Answered

The Linear Analysis Workspace is Empty ?

Is your Data Browser visible in the Linear Analysis Tool? If not, click on the Data Browser tab on the left hand side of the Li...

The Linear Analysis Workspace is Empty ?

Is your Data Browser visible in the Linear Analysis Tool? If not, click on the Data Browser tab on the left hand side of the Li...

24 days ago | 0

| accepted

Answered

To plot two bode diagrams, one is obtained from linearization tool and the other one is obtained from calculated transfer function, in a single figure.

There should be a Data Browser pane on the left side of the Linear Analysis Tool window. If you can't see the pane, then you mig...

To plot two bode diagrams, one is obtained from linearization tool and the other one is obtained from calculated transfer function, in a single figure.

There should be a Data Browser pane on the left side of the Linear Analysis Tool window. If you can't see the pane, then you mig...

24 days ago | 0

| accepted

Answered

Difference between randn() and awgn() in adding white noise to a signal

This seems to get closer to what you're expecting: t = linspace(0,120,8000); x = sin(2*pi*0.01.*t+pi/3).*cos(2*pi*0.01.*t+pi...

Difference between randn() and awgn() in adding white noise to a signal

This seems to get closer to what you're expecting: t = linspace(0,120,8000); x = sin(2*pi*0.01.*t+pi/3).*cos(2*pi*0.01.*t+pi...

24 days ago | 0

Question

How Do I Determine which Group Variables Correspond to the Results of SplitApply

Suppose I use splitapply as follows, taken directly from its doc page: >> load patients >> whos Gender Height Name ...

1 month ago | 1 answer | 0

Answered

Im confused by Matlab's dontinuous-to-discrete conversion methods and how they work

I'll give an initial answer and then come back and edit if you have any more questions. As far as the table goes: The Zero-ord...

Im confused by Matlab's dontinuous-to-discrete conversion methods and how they work

I'll give an initial answer and then come back and edit if you have any more questions. As far as the table goes: The Zero-ord...

1 month ago | 0

| accepted

Answered

How can I eliminate numbers with "e" in the transfer function and show them in their long form?

If you don't mind me asking, why do you want to display G10 with coefficients in their long form? If you just want to seem them...

How can I eliminate numbers with "e" in the transfer function and show them in their long form?

If you don't mind me asking, why do you want to display G10 with coefficients in their long form? If you just want to seem them...

1 month ago | 0

| accepted

Answered

Problem with Bode Plot of cascaded discrete time systems

I can't tell you why your result is so inaccurate; I suspect it has to do with numerical issues in how the CST develops the tf f...

Problem with Bode Plot of cascaded discrete time systems

I can't tell you why your result is so inaccurate; I suspect it has to do with numerical issues in how the CST develops the tf f...

1 month ago | 1

| accepted

Answered

Effects of Zero Order Hold in Simulink linearization

"My expectation is to obtain a continuous-time linear system whose frequency response is essentially equal to that of the discre...

Effects of Zero Order Hold in Simulink linearization

"My expectation is to obtain a continuous-time linear system whose frequency response is essentially equal to that of the discre...

1 month ago | 1

| accepted

Answered

Unable to properly feedback an updated signal in simulink

Is there a reason why you wan to use a feedack loop where none really exists? Keep in mind that feedback loop is sampled and th...

Unable to properly feedback an updated signal in simulink

Is there a reason why you wan to use a feedack loop where none really exists? Keep in mind that feedback loop is sampled and th...

1 month ago | 0

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