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
- :
- generating random elements

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

Highlighted

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

01-07-2015
03:17 PM

01-07-2015
03:17 PM

Hello All,

Could anybody help me with this question please?

I have a matrix "M" with five elements. I want to generate 10 (for example) matrices such that each element is randomly within +/- %5 of the corresponding element of the matrix "M".

Thank you in advance

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

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

01-07-2015
05:47 PM

01-07-2015
05:47 PM

PAYMAN RAJAI wrote:

Hello All,

Could anybody help me with this question please?

I have a matrix "M" with five elements. I want to generate 10 (for example) matrices such that each element is randomly within +/- %5 of the corresponding element of the matrix "M".

Thank you in advance

You may use something like this for a single value or matrix

You may also turn this procedure in a function

and use this function to create ten sets using a range variable

6 REPLIES 6

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

01-07-2015
04:04 PM

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

01-07-2015
04:24 PM

01-07-2015
04:24 PM

Re: generating random elements

Thank you very much Fred.

I can't open the file. Would you please send the file in Mathcad15?

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

01-07-2015
05:47 PM

01-07-2015
05:47 PM

PAYMAN RAJAI wrote:

Hello All,

Could anybody help me with this question please?

I have a matrix "M" with five elements. I want to generate 10 (for example) matrices such that each element is randomly within +/- %5 of the corresponding element of the matrix "M".

Thank you in advance

You may use something like this for a single value or matrix

You may also turn this procedure in a function

and use this function to create ten sets using a range variable

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

01-08-2015
04:47 AM

01-08-2015
04:47 AM

Re: generating random elements

Nice and Simple, Werner! The hallmark of a Good Worksheet :-)

I'm too lazy to type out the range variable, though ...

Stuart

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

01-08-2015
11:42 AM

01-08-2015
11:42 AM

Re: generating random elements

Thank you very much Werenr and Stuart. A great help

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

01-12-2015
06:44 AM

01-12-2015
06:44 AM

Re: generating random elements

Please find in attachment version of this document in PDF format.

Top Tags