how to plot red of the matrix

5 Ansichten (letzte 30 Tage)
nu
nu am 3 Dez. 2013
Beantwortet: nu am 3 Dez. 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..?

Antworten (2)

Azzi Abdelmalek
Azzi Abdelmalek am 3 Dez. 2013
Bearbeitet: Azzi Abdelmalek am 3 Dez. 2013
a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by