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

building an array

FlyingKiwi
1-Newbie

building an array

I am new to MathCAD so I am guessing this is a pretty basic question. I want to build an array based on a larger array. I can get it to work for a single vector, but as soon as I add another column to make a matirx, it doesn't work. Anyone able to let me know what I need to do to fix it? I have attached my file.

Thanks for helping me

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:FlyingKiwi)

in the line containing your if statement:

if x[i,0 <-- m

replace the local assignment operator <-- with a boolean equals (Ctrl =):

if x[i,0 = m

View solution in original post

9 REPLIES 9
MikeArmstrong
5-Regular Member
(To:FlyingKiwi)

Firstly, welcome to the forum.

Its not very clear exactly what your after. You could try expanding your explanation or manually type an example of the array you want to create.

Mike

RichardJ
19-Tanzanite
(To:FlyingKiwi)

in the line containing your if statement:

if x[i,0 <-- m

replace the local assignment operator <-- with a boolean equals (Ctrl =):

if x[i,0 = m

MikeArmstrong
5-Regular Member
(To:RichardJ)

in the line containing your if statement:

if x[i,0 <-- m

replace the local assignment operator <-- with a boolean equals (Ctrl =):

if x[i,0 = m

I doubt that is what he's after Richard. If is it it seems a little over the top, could just use the vlookup function.

Clipboard01.jpg

Mike

Hi Richard and Mike,

Thanks fellas for your help. Sorry if I wasted your time with such a little problem.

Best Regards,

Matt

RichardJ
19-Tanzanite
(To:FlyingKiwi)

No worries. Little problems can only ever waste little amounts of time

I doubt that is what he's after Richard.

I think it is what he is after

If is it it seems a little over the top, could just use the vlookup function.

That is an excellent point. I completely missed that

MikeArmstrong
5-Regular Member
(To:RichardJ)

I deserve a.....

http://communities.ptc.com/servlet/JiveServlet/showImage/38-1286-6356/thwack.gif

Mike

Well, then I guess I would also deserve one for missing vlookup

http://communities.ptc.com/servlet/JiveServlet/showImage/38-1286-12072/thwack+thwack.gif

MikeArmstrong
5-Regular Member
(To:RichardJ)

Ok Richard you where correct.

Didn't understand why the thread was talking about a matrix though.

Mike

Top Tags