Feeds
提问
Change color of leading edge of a maze generator algorithm
I have designed a DFS maze generator algorithm. I am plotting it using pcolor. The paths are shown in blue color while the block...
9 years 前 | 0 个回答 | 0
0
个回答提问
Is there a way quickly to check if any element in a matrix is non zero?
I am trying to write a DFS maze generation algorithm. I initialize all elements in the matrix to 0 and then go about changing va...
9 years 前 | 1 个回答 | 0
1
个回答提问
How can I store an array from a called function to another array?
I have a function Sysmodel(), which calculates the value of an array B based on random variables. What I want is to store differ...
11 years 前 | 1 个回答 | 0
1
个回答提问
How can I take the values of one array, map the values as indices to another array, then generate a thrid array with the sum of former's elements??
I know the question is a bit confusing, so let me illustrate what i am trying to do with an example: A = [ 2 1 4 2 3 2 4 0 ] ...
11 years 前 | 1 个回答 | 0
1
个回答提问
How to find the number of times an elements occurs in an array and copy to another array with same index
What I need is to find the number of times the elements repeat themselves in an array and copy the count to another array with t...
11 years 前 | 1 个回答 | 0
