cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Rerunning a loop with a condition.

ptc-5008809
1-Visitor

Rerunning a loop with a condition.

This is a small part of my loop which gives me the value of P.M in the end; which is a

(312 X 10) matrix.

I am interested in calculating P.M with a condition saying (PM<x) it reruns the loop again

incresing the value of xi by 10 each time

Please ignore the error as i have deleated 95% of the table since it was 15 pages long.

If someone could please write a discription or a short example for help.

thanks in advance.

2 REPLIES 2
Werner_E
25-Diamond I
(To:ptc-5008809)

Was you able to sort things out with your last problem?

http://communities.ptc.com/message/199709#199709

Werner_E
25-Diamond I
(To:ptc-5008809)

Assumed answered does mean you have found your error in reasoning?

As you PM is the product of a constant and x[i. If PM<x[i and you increase x[i the relation will remain the same! So the while-loop you would have to use will run endlessly. Or did you had in mind to increase the factor in yor PM only, leaving the value to compare with unchanged?

Announcements

Top Tags