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

Réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 3 Déc 2013
Modifié(e) : Azzi Abdelmalek le 3 Déc 2013

0 votes

a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)
nu
nu le 3 Déc 2013

0 votes

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

Tags

Question posée :

nu
le 3 Déc 2013

Réponse apportée :

nu
le 3 Déc 2013

Community Treasure Hunt

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

Start Hunting!

Translated by