Problem allocating vector components

I can’t reproduce the error here. In your code s is not defined, but even if I define it, I do not get any error.

2 Likes