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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

make multiple copy from a single value

Bartz87
1-Visitor

make multiple copy from a single value

This may be a basic question but I have to ask this to save time...

If I have,

a := 1

b:=5

how do I program to make this,

$58C90A7999D5FB71.bmp"c" is equal to "a" but is copied "b" times to make a matrix shown above

11 REPLIES 11

Have a look at the attached.

Mike

I also forgot to mention that there is a pre-defined function in the collapsed area which will create a vector matrix filled with 1’s.

I have also improved the program function, see attached.

Mike

Mike,

:

Pic_1.png

That was in my first example, have a look at my second example.

I know it's bad practice to use pre-defined variables, but in this case it didn't matter.

Mike

I think that learning is better with a simple example .

VladimirN
24-Ruby II
(To:Bartz87)

Try the following:

Pic_1.jpg

Or how about:

Multiple.jpg

Alan

I much prefer to make functions - matter of style.

Picture2.jpg

- Guy

MikeArmstrong
12-Amethyst
(To:GuyB)

Exactly the same as my second example

Mike

Pic_1.jpg

Don't encourage ORIGIN = 1

Mike

Mike Armstrong wrote:

Don't encourage ORIGIN = 1

Mike

.

Announcements

Top Tags