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...
Asked 11 months 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...
how do we extract the maximum number from a matrix, and tell the screen which column or row this number is in?
Asked 10 months ago
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()"?
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
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?
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)
f = var(n);
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));
"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.
this is where my main ...
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...
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):
Why cant i display a negative number in matlab??? it isnt letting me??
how to create confidence intervals in a while loop without stat toolbox?
using fitdist and paraci requires the toolbox, I ass...
Join the conversation