function I do not really understand, could somebody give me a hint?
Ältere Kommentare anzeigen
Hi,
I have received a function which consists of several furnctions, but I have some problems to see what is going on here. In input parameters are given in line two: x0 = [1.1768 0.082259 0.83746 -0.54589]; %parameters: psi m xi rho
That's clear so mean that I can change them in order to get the function running. But I am not sure what is happending with those parameters. In the last function, the following is happening
Akzeptierte Antwort
Weitere Antworten (1)
Wayne King
am 19 Mai 2013
This input
x0 = [1.1768 0.082259 0.83746 -0.54589];
is fed into CallPriceF() as the input argument, parameters.
Then, it is fed into the function, CallPriceIntegralF(), as the input argument, x.
So the code:
kappa = x(1); theta = x(2);
sigma = x(3); rho = x(4);
inside of CallPriceIntegralF() is really
kappa = x0(1); theta = x0(2);
sigma = x0(3); rho = x0(4);
Kategorien
Mehr zu Numeric Solvers finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!