how to plot red of the matrix
5 ビュー (過去 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!