Skip to main content
1-Visitor
May 26, 2015
Question

Array index invalid.

  • May 26, 2015
  • 1 reply
  • 2636 views

Hey so I posted some time a go and i got help really nicely. THX for that.

I am working on a simulation but I cannot get it to work because of the error (this array index invalid for this array.)

I dont know how to fix it can someone help me?

THX.

1 reply

23-Emerald V
May 26, 2015

Do you have any test data to use with your function?  It's difficult to tell what the problem is without seeing it in action.

Stuart

loittinen1-VisitorAuthor
1-Visitor
May 26, 2015

The problem is with the alfha dots that are in the definition on C_L and C_m and in alfha dot. i had a mistake in my code and that i had the alfha dot replised by just alfhas. and when i tried to undo my mistake i always get this array invalid message-

23-Emerald V
May 26, 2015

I'd already found the source of the (initial) problem by the time I read your reply.  You have a lot arrays with the "." subscript as well as index.   Some of the variable name also have a subscript "." but following characters, which makes it difficult to tell at first glance whether you meant N. or N - they look the same.

Stuart