提问


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

6 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 0 个回答 | 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...

7 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 0 个回答 | 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...

7 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 2 个回答 | 1

2

个回答

提问


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

7 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 1 个回答 | 0

1

个回答

提问


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

7 years 前 | 2 个回答 | 0

2

个回答

已回答
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.

8 years 前 | 0

提问


How to pass a variable from one file to another?
Hi all, I have a matlab function block in Simulink with a feedback. The input to the function is a constant that changes with t...

8 years 前 | 2 个回答 | 0

2

个回答

提问


ode15s is not supported when used in matlab-fn block in simulink
I have a code solves DAEs using ode15s fn. However, when I copy it into matlab function block in simulink, it does not work and ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Solving a system of nonlinear algebraic equations numerically
I was wondering if there is a function for solving a system of nonlinear algebraic equations numerically. My equations are made ...

8 years 前 | 2 个回答 | 0

2

个回答

提问


How to add a new graph with keeping the old one plotted?
I have a 14-node graph with a connectivity matrix A: A= [ 0 -1 0 0 -1 0 0 0 0 0 ...

8 years 前 | 1 个回答 | 1

1

个回答

提问


Plot two different data having the same xy-location
I am using the graph plot function to plot some data having the same xy-location. However, I want to highlight some of these dat...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Add a constraint to Ax>b using intlinprog
I have a matrix A with m rows (eq's) and n columns (variable) where Ax>b; each row in A has a specific value in b. I want to add...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Replacing repeated values in each row with zero
I have a matrix A: A=[ 2 4 6 7 8 9 10 28 6 9 10 11; 2 4 6 7 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Create and plot random points with connected lines
I wondered if there is a way to plot random points I know the total number of them, and then plot the lines that connect them. T...

8 years 前 | 2 个回答 | 0

2

个回答

提问


"nchoosek" function for a matrix whose all elements are 0 or 1
I have a matrix A whose all elements are 0 or 1. For example, the first row of A is: [ 0 0 1 0 0 1 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Create a vector that gives the information about the locations of each element
I have the vector A: A=[1 3 7], and I want to create another array, say B, that contains the locations of the elements of A. ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


How to tell matlab that all x's to be found are either one or zero using "intlinprog"
I want to solve an integer linear programming problem and I want to tell the solver "intlinprog" that all x's in the problem (sh...

8 years 前 | 1 个回答 | 0

1

个回答

提问


(AX < b) instead of (AX <= b) using the solver " intlinprog "
I was wondering if there is an option (smaller than (<)) instead of (<=) using the solver "intlinprog". There is only the option...

8 years 前 | 2 个回答 | 0

2

个回答

提问


Find random locations of a network that make no overlap between the lines connect them
I am not sure if this is possible in Matlab; I have a network consists of hundreds of nodes P(X,Y) with hundreds of branch (line...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Replace an element in a matrix if it's a member of an array with zero
I have a matrix A and an array B, I want to find any element in A that exist in B and replace it with zero. Any idea? Thanks

8 years 前 | 1 个回答 | 0

1

个回答

提问


Solve Ax <= b with some unknown values of [b]? but with a relationship between them
I am using the solver "intlinprog" to solve an integer linear programming problem with inequality Ax<=b. This is one case I have...

8 years 前 | 1 个回答 | 0

1

个回答

提问


How to enforce the optimization solver to include some particular x's
I am working on Mixed-Integer Linear Programming problem using "intlinprog" solver. I want the solver to include some places (le...

8 years 前 | 1 个回答 | 0

1

个回答

提问


"intlinprog" error
I am trying to add some options to my solver (intlinprog) for my integer-linear-programming problem. Why do I get an error for m...

8 years 前 | 3 个回答 | 0

3

个回答

已回答
Is CPLEX an open-source optimization toolbox?
Thanks

8 years 前 | 0

加载更多