how to plot red of the matrix
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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..?
0 comentarios
Respuestas (2)
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)
0 comentarios
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!