User Portlet User Portlet

Discussions
I want to update "matrix1" 100 times. "matrix3" will be new "matrix1" and it will iterate 100 times. Should I use a loop or function? First iteration is: matrix1 = ( { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} } ); ...
I want to print a list from a function but It gives me 4 lists. I think I shouldn't use Print[] function. Here is the code: alista = {{2, 1}, {4, 4}, {7, 5}, {10, 5}, {12, 5}}; alist3a = {}; fnk[n_] := Which[n == 1, Do[ ...
How do I find the **k** value greater than **50** in how many attempts? And I want to add number of all attempts into a list. liste = RandomReal[{1, 10}, 100]; liste2 = RandomReal[{1, 10}, 100]; m = RandomChoice[liste] n =...
Is there any way to write a code that has a function include **Block[ ]** and **Do[ ]** loop instead of my code? (* m = Maximum members of "list" *) list = {{12, 9, 10, 5}, {3, 7, 18, 6}, {1, 2, 3, 3}, {4, 5, 6, 2}, {1, 13, 1,...
Thank you Mariusz, This trick helped.