Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello,
I'm attempting to use a For Loop to complete iterative calculations for multiple cases. The program that I wrote works fine for single values (scalars), but doesn't work so well with vectors. Results are coming out as scalar when it should be a vector. I could use some help.
Thanks
Solved! Go to Solution.
You miss the vector index when calling M(delta[i)
Furthermore you have to provide a return value in case M(delta[i) >M.n[i
Try your first solve block (the working one) with the last or last but one values of your vectors to see what i mean.
As far as I can see you opened four threads here in the forum and after posting your question you never came back to comment the answers and close the threads.
This behavior is a bit irritating.
I apologize. I was not familiar with the etiquette on this board. I will endeavor to do better.
use subscript i for delta value
I tried that. It did not work.
You miss the vector index when calling M(delta[i)
Furthermore you have to provide a return value in case M(delta[i) >M.n[i
Try your first solve block (the working one) with the last or last but one values of your vectors to see what i mean.
That worked! Thanks!