how to plot red of the matrix

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..?

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 3 日
編集済み: Azzi Abdelmalek 2013 年 12 月 3 日

0 投票

a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)
nu
nu 2013 年 12 月 3 日

0 投票

i mean the result 1 is change into red. and using a plot..?

カテゴリ

タグ

質問済み:

nu
2013 年 12 月 3 日

回答済み:

nu
2013 年 12 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by