필터 지우기
필터 지우기

Imagesc split pixel into 2 different colours?

조회 수: 1 (최근 30일)
Robert
Robert 2016년 3월 7일
댓글: Robert 2016년 3월 8일
I am using imagesc to plot a map. There are 8 possible variables that can be included in a pixel, hence the plot is of values 1-8. Most pixels only have one number included, however some have 2. To accurately represent this I wonder if it is possible to somehow split a pixel in half so that when I plot the map using imagesc it shows 2 colours (e.g. the colour representing 1 and the colour representing 5)
Is there a simple solution to achieve this?

채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 8일
No. You will need to create a new matrix twice as wide (or twice as tall) in which each pair of locations is either set the same (one color) or is set differently (two colors)
  댓글 수: 1
Robert
Robert 2016년 3월 8일
I thought that might be the case, thank you

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Preprocessing Data에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by