Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Rerunning a loop with a condition.

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-02-2013
06:07 AM

08-02-2013
06:07 AM

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.

Labels:

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-02-2013
08:27 AM

08-02-2013
08:27 AM

Re: Rerunning a loop with a condition.

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-02-2013
08:59 AM

08-02-2013
08:59 AM

Re: Rerunning a loop with a condition.

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?