bootstat = bootstrp(1000, @historicalVaR(returnsdata,P,cl),returnsdata)
Where historicalVaR is a self written function in the path, that calculates VaR of a data set. its inputs are: returnsdata = vector of returns P = size of investment cl = confidence interval
The error I am getting is:
bootstat = bootstrp(1000,@historicalVaR(returnsdata,P,cl),returnsdata) ↑Error: Unbalanced or unexpected parenthesis or bracket.
But I do not see how it is unbalanced. Is it possible to use such a function with inputs with bootstrp?
Best Answer