0

Someone can help me with function A, why don't run? I can't understand the error, maybe bad write? because in B it's ok with graphic, check my method of Runge Kutta 2 Functions (f,g) and the original problem from mathcad sorry for my bad english

rayryeng
  • 102,964
  • 22
  • 184
  • 193

1 Answers1

1

In the first case a inline function with 2 parameters (x y) is created, but all three parameters are used to call it. I recommend not to use inline and switch to function handles instead. Unused parameters are no problem here.

If you instead wish to use inline, specify the function arguments (x y t) when calling inline.

Daniel
  • 36,610
  • 3
  • 36
  • 69