Hello! The picture says a thousand words: http://www.hot.ee/jaaniussikesed/v6rrand.jpg [Broken] In the last member under the square root, there is the error. For some reason I am not able to differentiate with an array index, ts1 is a single column 5 row matrix. How to solve this? The error says "a name is required here". Thanks, U.