how to plot red of the matrix

5 visualizaciones (últimos 30 días)
nu
nu el 3 de Dic. de 2013
Respondida: nu el 3 de Dic. de 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..?

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 3 de Dic. de 2013
Editada: Azzi Abdelmalek el 3 de Dic. de 2013
a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)

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

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by