질문

Changing the font size of a block parameter value in Simulink 2019a

I have been using MATLAB 2018 and previous versions and I did not have problem with changing the font size of block parameter va...

3달 전 | 답변 수: 0 | 0

질문

How to enforce ode15s to solve a DAEs system with some state variables limited by a range?

I have a set of DAEs to be solved for state and algebraic variables in the form of vectors. Two vectors of the state variables (...

5달 전 | 답변 수: 1 | 0

질문

How to find eigenvalue of a matrix (attached) having three variables?

I have a 33X33 matrix with three variables (KA1, KA2, KA3). I want to take its eigenvalues. The eigenvalue should be a function ...

5달 전 | 답변 수: 1 | 0

질문

Is it possible to convert a symbolic set of DAEs to a state-space form?

I was wodering if there is a way in Matlab to convert a set of DAEs to the state-space form symbolically; I have a system with f...

5달 전 | 답변 수: 0 | 0

질문

What does this "fsolve" message tell me?

I used fsolve for solving a set of AEs system, but at some points, there was a message (below) and I want to make sure that the ...

5달 전 | 답변 수: 1 | 1

질문

How to tell ode15s to change its max time step for a specific short time range?

I have a dynamic system coded in Matlab and solved using ode15s, and it works fine except it is slow because of the system size....

5달 전 | 답변 수: 1 | 0

질문

How to replace a "for loop" with vectorization?

Hi everyone, I have built in Simulink a user-defined function block for solving a set of algebraic nonlinear equations (with sin...

6달 전 | 답변 수: 2 | 0

답변 있음

change width and color of a compass plot

Thaks Adam, but I use compass function not polarplot. Anyway, I found my solution in: https://stackoverflow.com/questions/7859...

change width and color of a compass plot

Thaks Adam, but I use compass function not polarplot. Anyway, I found my solution in: https://stackoverflow.com/questions/7859...

7달 전 | 0

| 수락됨

질문

change width and color of a compass plot

I have a compass plot (attached) and I want to cnage the line width, color, and type using code not manually. Any help would be...

7달 전 | 답변 수: 2 | 0

답변 있음

How to add right ylabel with complex values (attached data and code)

Plotting is a basic problem in many fileds. I wonder how Matlab after years of feedbacks did not solve such a problem. The prole...

How to add right ylabel with complex values (attached data and code)

Plotting is a basic problem in many fileds. I wonder how Matlab after years of feedbacks did not solve such a problem. The prole...

9달 전 | 0

질문

How to add right ylabel with complex values (attached data and code)

I have a matrix attached called "PF". I read the matrix and plot it using pcolor. This matrix has x-label named "x_state" and le...

9달 전 | 답변 수: 3 | 0

질문

Highlighting a portion of an image created from a matrix using "pcolor"

I have created an image to visualize a matrix I have using pcolor function. The plot is shown below. I want to highlight element...

9달 전 | 답변 수: 1 | 0

질문

How to get mask parameters of a Simulink block

I am trying to get the parameter values of a Simulink block. Any idea? Thanks

1년 이상 전 | 답변 수: 1 | 0

질문

How to change values of elements in a sparse matrix

I have the following sparse matrix: (1,1) 1.1000 (2,2) 2.1000 (3,3) 0.1000 (4,4) 5.100...

1년 이상 전 | 답변 수: 1 | 0

답변 있음

Error using xlsread (line 249) Excel Worksheet could not be activated.

I had the same problem. After closing-reopening MATLAB, it worked just fine. I have no add-in plugin in Excel.

Error using xlsread (line 249) Excel Worksheet could not be activated.

I had the same problem. After closing-reopening MATLAB, it worked just fine. I have no add-in plugin in Excel.

1년 이상 전 | 2

답변 있음

How to add a column to a matrix by matching element (attached data)

Thank you Adam, thank you Jason. Both methods work. Jason's method is relatively easier since there is no for loop.

How to add a column to a matrix by matching element (attached data)

Thank you Adam, thank you Jason. Both methods work. Jason's method is relatively easier since there is no for loop.

1년 이상 전 | 0

질문

How to add a column to a matrix by matching element (attached data)

Hi I have two matrices A and B with different sizes; B is smaller in size than A. I want to add another column to A by matching...

1년 이상 전 | 답변 수: 3 | 0

질문

How to save MPC (model predictive controller) to be used later on? The error message is attached.

I have designed an MPC controller in Simulink, and it works well as long as I don't exit-reopen MATLAB or don't clear the worksp...

1년 이상 전 | 답변 수: 3 | 0

질문

How to use fsolve solution as its initial values for the next step size

Hi, I want to solve a system of nonlinear equations (having sine and cosine) inside a user-defined function in Simulink. It wor...

1년 이상 전 | 답변 수: 1 | 0

질문

faster version of "fsolve" function

Does anybody know a function in MATLAB that can perform a similar job as "fsolve" does but faster? I have a user-defined functio...

약 2년 전 | 답변 수: 0 | 0

질문

How to combine pre-saved plots (.fig) into one figure?

Hi, I have several pre-saved plots in format .fig and I want to combine them together with different colors. Any simple functio...

약 2년 전 | 답변 수: 1 | 0

질문

How to copy a complex matrix in the workspace to an m-file?

I need to copy a large complex matrix from the workspace to be saved in m-file as a matrix (notice the complex sign (i or j or 1...

2년 이상 전 | 답변 수: 1 | 0

질문

Multiplying [16x16] matrix with [16x1] vector in Simulink?

I have a matrix A (=16x16) multiplied by the vector B (=16x1): Result=A (16x16) * B (16x1) Using Simulink (The rest of t...

2년 이상 전 | 답변 수: 0 | 0

질문

Solving DAEs problem with different initial conditions at different times of simulation using ode15s

I have a set of DAEs that I solved it using ode15s. Now, I want to solve the same problem but the initial conditions are changed...

2년 이상 전 | 답변 수: 1 | 0

질문

Tuning transfer function to get only positive parameters using Simulink

I have a transfer function with order three in both numerator and denominator. I am tuning the block using the control system tu...

2년 이상 전 | 답변 수: 1 | 0

질문

Stiff Delay Differential Equations

Does anybody know how to solve STIFF differential equations with delay in time? The solvers in Matlab (dde23,...) are for non-st...

2년 이상 전 | 답변 수: 2 | 0

질문

What function in Matlab is equivalent to the block in Simulink "Transport Delay"?

I want to use a delay function that does exactly what the block in Simulink "Transport Delay" does. I tried to use the function ...

2년 이상 전 | 답변 수: 1 | 0

질문

Updating Initial Conditions from last calculated values

I am trying to find a way to update the initial conditions (x0=[y1,y2,y3,y4,y5]) needed for fsolve in Simulink using Matlab Func...

2년 이상 전 | 답변 수: 1 | 0

질문

Why am I getting a "Signal Dimension" error?

I am wondering why I get the following error message. There is no problem with the signal dimension as shown.Also, I am not usin...

2년 이상 전 | 답변 수: 2 | 0

답변 있음

How to pass a variable from one file to another?

Also, I added a block "To Workspace" with the name "B" but still B is undefined.

How to pass a variable from one file to another?

Also, I added a block "To Workspace" with the name "B" but still B is undefined.

2년 이상 전 | 0