Answered
Rearrange state space system
Let's assume that the state space model from Simulink is defined as: xdot = A*x + B*u [y1;y2] = [C1; C2] * x + [0;D2] u where...

6 years ago | 1

| accepted

Answered
Why can't I get the same plot as the official tutorial video? (non-minimal phase system)
I get the same Bode plots. What's different about yours? Also, you can do this with one Bode command bode(G,G_RHP_zero,G_delay...

6 years ago | 1

| accepted

Answered
Using Lsim to solve a dynamic control model.
It sounds like wf1 and wf2 are supposed to be step inputs at t = 1 and t = 5. In Simulink these were implemented with Step block...

6 years ago | 0

Answered
Accurate rise time with stepinfo()
The first input to stepinfo is incorrect. It should just be g >> S = stepinfo(g,'RiseTimeLimits',[0 0.632]) S = struc...

6 years ago | 0

Answered
How to input a vector in Simulink with initial values to ultimately plot it over time?
Define x0 and A in the matlab workspace. Here is the block diagram. Make sure to select matrix multiply for the gain blocks. De...

6 years ago | 0

| accepted

Answered
Is there a way to reset after a given time the initial condition of an integrator block in simulink?
If you haven't already, check out section Resetting the State on the Integrator block doc page.

6 years ago | 0

Answered
Plotting control closed loop input
The direct answer to your question is this line: >> u = -K.*ycl2 + F.*r; Matrix dimensions must agree. >> size( -K.*ycl2) ...

6 years ago | 0

Question


How Do I Delete a Linear Analysis Point from a Block Diagram?
I have a Simulink block diagram and on one of the signal lines I set a linear analysis point: right click -> Linear Analysis Poi...

6 years ago | 1 answer | 0

1

answer

Answered
program block diagram in matlab, not simulink
Look at doc connect and see if that helps.

6 years ago | 0

| accepted

Answered
Estimating a second order transfer function for a over damped second order system.
I haven't yet tried this myself, but in the System Identification Toolbox idproc looks like it will allow you to specify a secon...

6 years ago | 0

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

6 years ago | 1

| accepted

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

6 years 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 ...

6 years ago | 0

Answered
Solving a linear system equations with variables on both sides
Similar problem discussed here

6 years 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...

6 years 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...

6 years ago | 0 answers | 0

0

answers

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

6 years 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...

6 years 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.

6 years ago | 1

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

6 years 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...

6 years 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

6 years 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 ...

6 years 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...

6 years 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...

6 years 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

6 years 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...

6 years 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...

6 years ago | 2

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

6 years 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...

6 years ago | 0

Load more