how to plot red of the matrix
4 次查看(过去 30 天)
显示 更早的评论
a = [1 1 0; 0 0 0; 0 0 1;]; idx = find(a==1); % linear coordinates [I,J] = ind2sub(size(a),idx);
how to plot red the result of find..?
0 个评论
回答(2 个)
Azzi Abdelmalek
2013-12-3
编辑:Azzi Abdelmalek
2013-12-3
a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!