photo

viswaja Katragadda


2017년부터 활동

Followers: 0   Following: 0

통계학

Feeds

보기 기준

질문


Hello I have this code for Game of life now I am getting an error in calculating the num_neighbors. Please help me fix it. Thank you
mylife = round(rand(size_of_game,size_of_game)); %mylife = [0 0 0 0 0;0 0 0 0 0;0 1 1 1 0;0 0 0 0 0 ;0 0 0 0 0 ]; ...

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Calculating the inner product of two input vectors and a matrix using for loop and inner function. How do I change the code I have? Thank you so much for your answers.
function y = inner(a,b); % This is a MatLab function to compute the inner product of % two vectors a and b. % C...

6년 초과 전 | 답변 수: 2 | 1

2

답변

질문


can anyone help me get the code for the Cellular automata model which Implements and visualizes 1000 generations starting from a random initial states of 0 and 1. The size of the square universe should be user provided.
The rules to update the next generation is: 1. A cell will die in the next generation if 4 or more of its neighbours are dead a...

6년 초과 전 | 답변 수: 1 | 0

1

답변

0

답변