I am completely new in Mathematica. I had experience in Fortran-4 and Modula-2.
My main problem is to declare variables and be able to work with them, not the math. I try to declare variables List, Table, Array, Matrix such as for instance of size 9x9x6 or 996x5. ( I do not want to start typing 1000s of zero.) Then I want to fill the Matrix with numbers using For and If functions.
While creating small Matrixes according to the book works, I just cannot find something like a DIM(996,5) function for my larger lists.
Simple example:
ClearAll;
n={{11,12,13,14},{21,22,23,24},{31,32,33,34}};
(* How about larger Matrixes and how would I declare all the positions a.g. =0? Would I use a double nested For loop? *)
n//MatrixForm
k=n[[2,2]];
k=k+100;
n[[2,2]]=k;
Print[n[[2,2]]];
n//MatrixForm (* it works to here *)
For[s=1,4,s++,If[n[[2,s]]>100,n[[2,s]]=0]]; (*this does not seem to work *)
Print[n[[2,2]]];
n//MatrixForm
Thank you for any hint.
