how to plot red of the matrix

5 visualizzazioni (ultimi 30 giorni)
nu
nu il 3 Dic 2013
Risposto: nu il 3 Dic 2013
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..?

Risposte (2)

Azzi Abdelmalek
Azzi Abdelmalek il 3 Dic 2013
Modificato: Azzi Abdelmalek il 3 Dic 2013
a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)

nu
nu il 3 Dic 2013
i mean the result 1 is change into red. and using a plot..?

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by