I want to plot a 2D matrix with a color contrast.

조회 수: 123 (최근 30일)
Anshuman S
Anshuman S 2018년 6월 18일
댓글: Walter Roberson 2018년 6월 18일
I've got a spreadsheet ( 2-D matrix ) which has got temperature readings of various points on a 2-D plane. How can I plot a color variation temp. profile plot for this matrix.
I have uploaded the csv file.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 6월 18일
Several possibilities:
imagesc(data)
contour(data)
contourf(data)
pcolor(data)
surf(data, 'edgecolor', 'none'); view(2);
  댓글 수: 5
Anshuman S
Anshuman S 2018년 6월 18일
Thanks ! May you tell me about the theory for this !
Walter Roberson
Walter Roberson 2018년 6월 18일
When you have a table, then using {} indexing on it extracts values from the table into ordinary arrays.
You should probably have asked for selected output type as numeric array instead of table for this data, as it is a 2D array of data instead of being columns of data each with a different meaning.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Other Formats에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by