Plot pixels from 2D boolean array
显示 更早的评论
I have a 2D boolean array stored 0s and 1s where I want to plot a red pixel. For example, If the 2D boolean array has 1 for (20, 20) location, it should plot a red pixel at that location. Else, it is has 0, it should not plot the red pixel.
Can someone help me?
采纳的回答
更多回答(2 个)
Radhika Kulkarni
2019-11-30
0 个投票
1 个评论
Stephan
2019-11-30
On File Exchange there are also tools to create gif animations. Maybe you want to use this.
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!