Give a specific color to an interval of value

조회 수: 1 (최근 30일)
Giacomo Abrardo
Giacomo Abrardo 2021년 5월 14일
답변: Walter Roberson 2021년 5월 14일
Hi, i have to plot with pcolor a matrix with values from -1 to 1. How can i assign to the values from -1 to 0.3 a color in grey scale and to the values from 0.3 to 1 a color in green scale? Thank you all
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 5월 14일
Are you talking about exactly two colors? Or are you talking about shades of colors -- that -1 to 0.3 is shades of grey and 0.3 to 1 is shades of green?
Giacomo Abrardo
Giacomo Abrardo 2021년 5월 14일
I'm talking about shade of colors

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

채택된 답변

Walter Roberson
Walter Roberson 2021년 5월 14일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Color and Styling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by