Feeds
提问
fmincon is not working
I'm trying to optimize the weights of a stock portfolio to maximize returns. I checked if expected_returns is a vector, and it i...
3 months 前 | 1 个回答 | 0
1
个回答提问
variables not being saved?
I just included the code for U here, but neither L nor U are being saved, but they can both be displayed? I'm trying to use the ...
7 months 前 | 2 个回答 | 0
2
个回答提问
finding the minimum of a function input with a parameter
%function to find recylce flowrate for range of conversions %then trying to find minimum conversion where total_recylce_flowra...
7 months 前 | 3 个回答 | 0
3
个回答提问
error saying not enough input arguments?
function newmatrix = rootflow(conversion) a = [-1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
7 months 前 | 1 个回答 | 0
1
个回答提问
trying to call a function from a function file in a script file
func = afunction; %trying to make the variable func equivalent to "afunciton", % the function I created in the afunction file ...
8 months 前 | 2 个回答 | 0
2
个回答提问
I'm just trying to make a function file with the function f(x)=e^cosx -x^3+2x^2+5x-3
function y = e^cosx -x^3+2x^2+5x-3 %I keep getting a parse error at the = that says it might be invalid matlab syntax.
8 months 前 | 1 个回答 | 0