Plotting matrix coordinates with indices?
2 次查看(过去 30 天)
显示 更早的评论
If I have a matrix with '0's and '1's, how can i make a 2D plot of points with coordinates corresponding to the cell indices of the '1's?
1 个评论
Matt Kindig
2013-7-17
Are the '0's and '1's actually part of a numeric matrix, or do you mean the actual characters '0' and '1', as part of a char matrix or a cell array? If it is numeric, the spy() function should do what you want.
doc spy
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!