(adsbygoogle = window.adsbygoogle || []).push({}); ??? Undefined function or method 'strike' for input arguments of type 'double'

Hi all..I have some problem with a Matlab script..

The aim of my exercise is to plot the change of a derivative's price (a swaption) on the basis of the change of its principal parameters (for example the strike).

This is the script:

strike=0.1:0.01:1.5

for i=1:lenght(strike)

swaption_strike(i)=swaption_price(strike(i))

end

where the function swaption_price is defined into another script and includes of course other variables.

It turns out this error message:

swaption_price(strike(i))

??? Undefined function or method 'strike' for input arguments of type 'double'.

What could be wrong?

Thanks

Elisa

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# ? Undefined function or method 'strike' for input arguments of type 'double'

**Physics Forums | Science Articles, Homework Help, Discussion**