Skip to main content
1-Visitor
December 29, 2010
Solved

building an array

  • December 29, 2010
  • 2 replies
  • 4591 views

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

Best answer by 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

2 replies

1-Visitor
December 29, 2010

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

RichardJ19-TanzaniteAnswer
19-Tanzanite
December 29, 2010

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

1-Visitor
December 29, 2010
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

1-Visitor
December 29, 2010

Hi Richard and Mike,

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

Best Regards,

Matt