How to vary the color according to the data ?

3 views (last 30 days)
Hello, I'm trying to create a kind of diagram with a single horizontal stick. in this one, I would like that the color varies according to the intensity. in fact, I have a two-column table with time and intensity and I would like to draw my intensity (represented by a color gradient, the higher the intensity is stronger the more it is red for example) as a function of time . I hope it's clear and you'll be able to help me. Many thanks.

Answers (1)

Adam
Adam on 25 Jul 2018
This answer may help.
  4 Comments
Chayma El Amraoui
Chayma El Amraoui on 27 Jul 2018
I don't know how to explain sorry. It's just a long rectangle

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!