Community Profile

Contact

Top 5% contributor

'Probability greater than swtNPVProb(i,1)' i is the loop variable. how do i get it to say the number associated with the vari...

3 Answers

0

Asked 1 year ago

Does anyone see anything wrong with the MATLAB syntax? k are variables for the loops I created in my main program. Any help w...

1 Answers

how do we extract the maximum number from a matrix, and tell the screen which column or row this number is in?

2 Answers

how would be able to set up the variance of a portfolio as an seperate objective function? I have the data read in from excel...

How can we output to the screen the columns that are unable to meet the constraints of fmincon, using "disp()"?

Hello: <</matlabcentral/answers/uploaded_files/13476/Capture%204.PNG>> This is what my code looks like for the the linear ...

can you make a reference to a certain line in MATLAB that will allow you to use it in a loop? I am trying to use multiple lin...

function [f] = objfun(W,VCVMatx) %function for varience of the portfolio with swtN stocks f =W*VCVMatx*W'; this is m...

My professor said that a bold 1 will sum of the entries of a vector to make it equal to a certain number. However, I do not know...

how can i use multiple linear equality constraints in one fmincon function?

I'm using fmincon to minimize the varience of a portfolio. As such, how would I be able to use TWO linear equality constraints? ...

how can i use two (more than one for each type of constraint) for a specific function?

this is my Aeq and beq: swtOther_Aeq = [ 1 0 1 0 0 0 1 0 0 0 ]; swtOther_beq = [ 0.22 ]; yet matlab is telling me Aeq n...

how do I create a surface (surf) plot with a NX3 Matrix? also how do i add a colorbar to this plot? Thanks.

how do i find the variance of a portfolio with N (variable number of assets)? the number of stocks will change depending on n...

function [ h ] = LinConOp( x ) x0 = [-1,1]; lb = swtMinWt1; ub = swtMaxWt1; Aeq = swt_Aeq; beq = swt_be...

function [f] = objfun(n) global f; f = var(n); end How is the global variable not working

How would I be able to write row(A) and it would output the number of rows in matrix A? What function should I use and write?...

rowsCI = rows(swtCI); B = sort(PQMatx(:,3)); h=1; while h<=rowsCI; UB=(1-swtCI(h,1)); UBB=UB/2; UBBB=1-UBB; ...

"if only 2 probabilties are desired, then entries 3 to 10 of swtNPVProb (a 10X1 vector) should be set to NaN" How do we do th...

How do u input a code that indicates how many how numbers in a col vector are greater than a certain number? i.e. x has 5000 ...

It should report to the screen probabilty of achieving NPV larger than some specified NPV (which is in the 10X1 matrix swtNPVPro...

Could someone explain to me what Cholesky decomposition is in layman terms? Like the simple intuition behind it. Thanks.

0 Answers

Hello: http://www.mathworks.com/matlabcentral/answers/131835-constraints-not-meeting-the-parameters this is where my main ...

<</matlabcentral/answers/uploaded_files/13464/capture%202.PNG>> How come it is giving me the following errors in the loop? ...

My assignment is to optimize a portfolio given a set of stock. I already have one linear equality constraint that makes certa...

Hello: I tried running fmincon, but in the main program it says the function does not have enough input arguments. f = W...

my vector looks like this : swtCI = [.99 .95 .50 ]' this will be in the loop (shown below): <</matlabcentral/answe...

Why cant i display a negative number in matlab??? it isnt letting me?? <</matlabcentral/answers/uploaded_files/12628/loop%20p...

how to create confidence intervals in a while loop without stat toolbox? using fitdist and paraci requires the toolbox, I ass...

Load more