Skip to main content
1-Visitor
August 2, 2013
Question

Rerunning a loop with a condition.

  • August 2, 2013
  • 2 replies
  • 1317 views

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

25-Diamond I
August 2, 2013

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

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

25-Diamond I
August 2, 2013

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?