how to plot red of the matrix
조회 수: 5 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Azzi Abdelmalek
2013년 12월 3일
편집: Azzi Abdelmalek
2013년 12월 3일
a = [1 1 0; 0 0 0; 0 0 1;];
[I,J]=find(a==1)
scatter(I,J)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!