Skip to main content
1-Visitor
January 29, 2018
Solved

Indexing again

  • January 29, 2018
  • 2 replies
  • 4553 views

Hello To All,

 

A few of you were really helpful in pinning down my indexing problem. In the attached is part of what I have been working on in the background. Please do not get too hung up on what the overall picture is or anything until the end of the sheet, you will see that I have created a couple of tables toward the end of values and have integrated between two sets of values (column 1 of each table with matrix Z(I) to get some areas and then have integrated these areas to get a volume. I now want to do this in terms of j I.e. get 5 volumes to account for each column of the tables. Any ideas where I am going wrong?

 

Thanks,

 

Andy.

Best answer by Fred_Kohlhepp

You create a 2D array b, then try to address it as a single dimension vector:

Capture.PNG

If you do the interpolation against the whole column "cntrl-shift-c", things work better:

Capture2.PNG

2 replies

awibroe1-VisitorAuthor
1-Visitor
January 29, 2018

PS I am using MCPrime 3 

23-Emerald I
January 29, 2018

You create a 2D array b, then try to address it as a single dimension vector:

Capture.PNG

If you do the interpolation against the whole column "cntrl-shift-c", things work better:

Capture2.PNG

awibroe1-VisitorAuthor
1-Visitor
January 29, 2018

Many Thanks Fred!

 

So as each is a column in the b matrix that makes allot of sense!

awibroe1-VisitorAuthor
1-Visitor
January 30, 2018

Fred,

 

any idea where I am going wrong in the attached? I am now trying to do the same thing again but as a function. I think the problem is now the same (my lack of understanding of the dimensions of what I am doing). Any help welcomed.

 

Thanks,

 

Andy.