MATLAB Answers

Give a specific color to an interval of value

1 view (last 30 days)
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 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!