How can I programatically create a custom color gradient for a plot or markers?
古いコメントを表示
I would like to create a plot with a color gradient that ranges from red to almost white. For example, I need 5 intermediate colors in a color vector where the darkest color is [1 0 0] and the lightest one is [1 1 1] in such a way that colors = [ [1 0 0] [? ? ?] [? ? ?] [? ? ?] [? ? ?] [? ? ?] [? ? ?] 1 1 1] ]. This means creating a color gradient manually in such a way that it ranges from red to light pink.
What is the simplest way to create this color vector programmatically?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Color and Styling についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

