02-08-2017 03:24 AM
02-08-2017 04:02 AM
02-08-2017 04:19 AM
Thanks for your reply and for the simpler code. I have other equations that belong to the calculation, so it was much easier for me to have them all inside the mathscript. I had an error in Y and didn´t understand why the "matrices" sizes r incompatible (?)
02-08-2017 04:40 AM
Hi Sarah,
according to my VI the result Y of your calculation should be a scalar, but you have defined it as array - that doesn't fit together!
Again: I'm not sure I converted your mathscript 100% correctly, so please cross-check for errors!
02-08-2017 04:59 AM
it must be a scalar that's true. Ychanges to an array when I set a range for n (here from 1 to 10000). For calculating Y, the n array elements should be simply summed together and then give a scalar Y as a result.
02-08-2017 11:25 AM
Now I found it. There was an error by the division. Forgot the dots behind the /. Now it works fine.