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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Nested arrays MathCAD15

Kate1
3-Visitor

Nested arrays MathCAD15

Hi all,

 

I am a beginner at MathCAD. I am using a trial version of MathCAD 15.

 

I have created an array, lets call it "a" (11 rows x 1 column) and then I have created a Matrix, let's call it "B" (2 rows and 1 column). The first element of the Matrix (1st row, 1st column) is the array "a".

 

How can I address to one of the elements of the array "a", contained inside the Matrix "B"?

 

For example, referring to the attached picture, what is the right syntax to extract the third element of the array (number 200)?

 

Thank you

Kate

 

 

 

 

2 REPLIES 2
Werner_E
24-Ruby V
(To:Kate1)

The problem is, that a is NOT a matrix or vector but its just a range!

A range is kind of an iteration loop and you can't access individual values.

If you turn a into a vector you simple use the vector index twice:

 

ranges vs vector always has always been a topic that caused confusion.

You might want to take a look at the excellent work on this subject of Stuart Bruff, which I attach.

 

 

Kate1
3-Visitor
(To:Werner_E)

Hello,

 

Thank you very mich for your kind and precious help!

 

Problem solved!

 

Kate

Top Tags