10x10 array homework pls help me

hey, I'm studying genetics and bioengineering. ı need help with a homework. Define a 10x10 matrix using encoding. then randomly place numbers from 1 to 100. Choose any number. set eight points around this number. select any two points and repeat these operations to the smallest (from the numbers around the number we selected). Repeat steps 1 until you reach. How do I do this with encoding? please help me. any program can be matlab or c ++. create a matrix and place the numbers randomly but I have no idea about the continuation. thank you
not sure what you mean with encoding
the other instructions are also kind of broken, use a better translator or explain yourself (try to write the instructions for a human operator instead of a computer)

> Choose any number.
¿from 1 to 100? ¿what if it isn't on the matrix? ¿or if it's repeated?
¿or do you mean to choose a cell?

> set eight points around this number
don't understand what to do
I suppose that you want to do something with the 8-neighbours...
¿what about the corners?

> select any two points and repeat these operations to the smallest
¿how do you select the points? ¿random, user input, every pair?
¿what operations?
¿and why select anything if you wanted the smallest?

> Repeat steps 1 until you reach.
¿which is step 1?
¿reach what?
Last edited on
Topic archived. No new replies allowed.