Question

Need help in solving coupled equations

Hello everybody, I would like to solve the following equations simultaneously for all X,Y,Z, W where i = 1: Nw, j = 1 : Nl, k =...

10 days ago | 1 answer | 0

Question

how to use ``while'' in implementing an algorithm?

Hello guys, I would like to implement the following algorithm in MATLAB. Could someone please kindly help me out? I have an o...

18 days ago | 0 answers | 0

Question

Improving the speed!

Hey MATLAB guys, Could someone please tell me how I can improve this code. It works pretty quick for nt_L=1:3. But, as nt_L i...

18 days ago | 1 answer | 0

Answered

Replace Nan by a number in a cell array

Hey guys! cI got another question regarding cell arrays. Any help would be greatly appreciated. I want to implement fmincon()...

Replace Nan by a number in a cell array

Hey guys! cI got another question regarding cell arrays. Any help would be greatly appreciated. I want to implement fmincon()...

20 days ago | 0

Question

implementing fmincon() when the variables are matrix

Hey guys, I want to implement fmincon() for this problem: I am minimizing an objective function with respect to some variables....

20 days ago | 0 answers | 0

Question

How to convert a cell array to a symbolic array?

Hey guys, I have a cell array of size x = cell(max(I(:)), numel(I), numel(I), numel(M), max(M(:))) that each element of this ce...

20 days ago | 1 answer | 0

Question

optimizing each element of a matrix based on the elements of another matrix

Hi MATLAB experts, I have an objective function which is a matrix. Each element of this matrix is a function of another matrix...

20 days ago | 0 answers | 0

Question

Replace Nan by a number in a cell array

Hey MATLAB guys, I would like to replace all Nan in the following cell array r by a number. Could anyone please tell me how I c...

23 days ago | 3 answers | 0

Answered

Solving system of n equations

Hi Walter, In one of the comments above you mentioned that "The tests I am doing effectively recover from NaN, so I know that i...

Solving system of n equations

Hi Walter, In one of the comments above you mentioned that "The tests I am doing effectively recover from NaN, so I know that i...

23 days ago | 0

Question

nonlinear inequality constraint for fmincon()

Hey guys, I am trying to write down the below nonlinear inequality constraint Calculate_W_S_R(J, I, K, tr_prob, Tp, Tavg, Pf,...

26 days ago | 0 answers | 0

Answered

Writing equations in a matrix form

@ Walter, I am trying to write-down the following linear constraint according to the way you taught me above. sum_{m} sum_{i} p...

Writing equations in a matrix form

@ Walter, I am trying to write-down the following linear constraint according to the way you taught me above. sum_{m} sum_{i} p...

27 days ago | 0

Answered

Solving system of n equations

Hey MATLAB experts, Can anyone kindly help me to write down the functions in 'solve function' for below equations? Thanks in ad...

Solving system of n equations

Hey MATLAB experts, Can anyone kindly help me to write down the functions in 'solve function' for below equations? Thanks in ad...

27 days ago | 0

Question

Writing equations in a matrix form

Hi MATLAB experts, Could any one please help me to write-down the following equations into a matrix form? the initial value of ...

30 days ago | 2 answers | 0

Question

Lagrangian Multiplier with inequality constraints when variables has a matrix form

Hey Guys, I am trying to implement the following optimization problem in MATLAB using the Lagrangian multiplier and got stuck a...

30 days ago | 0 answers | 0

Question

Sum of a 4D matrix

Hey Guys! I want to generate bunch of matrices in which each element takes value betwwn 0 and 1 and the summation of all eleme...

1 month ago | 2 answers | 0

Answered

Solving system of n equations

I have got some silly questions. Sorry in advance if they are super simple. Could anyone kindly help me to figure them out? 1)...

Solving system of n equations

I have got some silly questions. Sorry in advance if they are super simple. Could anyone kindly help me to figure them out? 1)...

1 month ago | 0

Question

Solving system of n equations

Hi MATLAb guys, I am stucking at some point and need your help. Do you know how it is possible to find a relationship between ...

1 month ago | 4 answers | 0

Question

Pre-locating an array

Hi MATLAB guys, I got stuck at some point and really appreciate your help. Do you know how can I pre-locate the value of X in...

1 month ago | 1 answer | 0

Question

Calculating and plotting an integral

Hi guys, Can anyone help me in calculating the attached integral. N=8, a = 0:10 (dB) x = sqrt(2*a) and the goal is plotti...

3 months ago | 0 answers | 0

Answered

Symbolic integration vs numerical integration

Dear Mike, Could you please help me with this integral? TIA!!!! a = 0 :10 and x = sqrt(2*a) and the goal is plotting Pb versus...

Symbolic integration vs numerical integration

Dear Mike, Could you please help me with this integral? TIA!!!! a = 0 :10 and x = sqrt(2*a) and the goal is plotting Pb versus...

3 months ago | 0