Matrix Manipulation
- October 21, 2010
- 1 reply
- 4222 views
Greetings,
I am trying to write a program that should simulate radiation heat transfer using the Monte Carlo technique. I am confident in the concepts however the programming to interpret the concepts I think offers some challenges involving matrix manipulation.
Problem 1: Trying to Unstack nested arrays that are generated separately by the random number generator function/three nested for loops. Currently I am only able to get one random generation of the nested array and then it repeats itself in the unstack routine. Seems like there is an error in the placement or deinfition of the random numbers.
Problem 2: Via conditional statement I would like to select only Matrix colums to from an ond Matrix of size N to input into a new matrix of a size determined by conditional statement.
I attached the MCDv11 sheet to help explain. I have the "debugging" routine which specifcally aims to address the problems I stated above, and the original routine to show where the routine should end up.
Any suggestions would be most helpful.
Best,
Hogan

