Solved
The indication [201,1] means that that 'value' is an array of 201 rows, 1 column.
In the definition of P0(n) you use two vectors in the argument of the exponent, they are f and da, but note that while you specify a single element of f (namely fn), you specify the entire array da (no n).
This means that when evaluating P0(n), for each of the 201 values of range n, you get an array of the length of da (which is 201 elements).
If you change the definition of P0(n) to select only one element of da (used dan), or you define da without n, so "da:=0.1 mm", you should get the results you expect.
Success!
Luc
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


