How do I correlate two matrices together
显示 更早的评论
How do i correlate two matrices together for minesweeper.
I have one matrix
mine_probabilities = rand(10);
mine = mine_probabilities >= .85
mine(1:2,1:2) = 0;
mine(9:10,9:10) = 0;
This Matrix called "mine" is the field for the bombs in minesweeper with a 1 indicating a bomb is present, 0 is a safeground.
Now I need to create a Game Window matrix "Game_Window" which the user will see with the ones and zeros from matrix "mine" covered up and labeled all -1 but still going back and correlating to the "mine" matrix.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Video games 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!