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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Programming an existing matrix

Baalzamon-disab
1-Newbie

Programming an existing matrix

Hi,

I have many queries lol but start with this one.
I would like to create a programmable function that acts on a predetermined matrix.
e.g.
i=0 to N
j=0 to M
Matrix (N by M)
define j=0 row as constants

~so far so good ~
But now i want it to calculate the next row depending upon the value from the row above.
e.g.
Do something to column 1....Do something else to column 2 to N-1....so something to column N.

~ the tricksome part ~
I've defined all variables prior so what input parameters do I need?
I simply chose i and j as the next i and next j depend on previous i and j.
But I can't seem to get it to work - no red highlights appear so ok??

Assuming I've programmed my function correctly how do i get it to act on the matrix i created initially??

Any illumination would be greatfull and appreciated...
2 REPLIES 2

Keep reading the collab and the qs tutorials, in order to familiarise yourself "Array/Matrices". You are very vague and no project to attract attention. In this collab, a project is a work sheet attached.

jmG

On 9/30/2009 1:00:21 PM, Baalzamon wrote:
>Hi,
>
>I have many queries lol but
>start with this one.
>I would like to create a
>programmable function that
>acts on a predetermined
>matrix.
>e.g.
>i=0 to N
>j=0 to M
>Matrix (N by M)
>define j=0 row as constants
>
>~so far so good ~
>But now i want it to calculate
>the next row depending upon
>the value from the row above.
>e.g.
>Do something to column 1....Do
>something else to column 2 to
>N-1....so something to column
>N.
>
>~ the tricksome part ~
>I've defined all variables
>prior so what input parameters
>do I need?
>I simply chose i and j as the
>next i and next j depend on
>previous i and j.
>But I can't seem to get it to
>work - no red highlights
>appear so ok??
>
>Assuming I've programmed my
>function correctly how do i
>get it to act on the matrix i
>created initially??
>
>Any illumination would be
>greatfull and appreciated...

Try something like this

Fred Kohlhepp
fkohlhepp@sikorsky.com
Announcements

Top Tags