Question


Why is extractFileText Much Slower than fileread for Text Files?
I'm fine with using fileread, but am curious why extractFileText is so much slower: >> tic,for i=1:500,s1=extractFileText('sonn...

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

1

réponse

Réponse apportée
Can I do this using matlab or simulink?
It looks like the Simulink model is that of a linear time invariant (LTI) system. If that is the case one can use linmod to get ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 5 ans il y a | 0

Réponse apportée
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) ...

plus de 5 ans il y a | 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...

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

1

réponse

Réponse apportée
program block diagram in matlab, not simulink
Look at doc connect and see if that helps.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
Solving a linear system equations with variables on both sides
Similar problem discussed here

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

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

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

0

réponse

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 2

| A accepté

Charger plus