how to plot red of the matrix

조회 수: 5 (최근 30일)
nu
nu 2013년 12월 3일
답변: nu 2013년 12월 3일
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..?

답변 (2개)

Azzi Abdelmalek
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)

nu
nu 2013년 12월 3일
i mean the result 1 is change into red. and using a plot..?

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by