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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

building an array

FlyingKiwi
1-Visitor

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

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

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

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

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

Ok Richard you where correct.

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

Mike

Announcements

Top Tags