How do I create a colormap for a flat plane?
古いコメントを表示
I am creating a flat plane, I want the color of the plane to be a gradient. I tried using the colormap copper but it keeps it black because it is flat. How can I adjust the color?
[x,y] = meshgrid(1:1250,1:760);
z = zeros(size(x));
colormap('copper')
surf(x,y,z-1)
2 件のコメント
Geoff Hayes
2019 年 9 月 20 日
Jossie - what do you expect the output to look like? Can you us how you expect the gradient to be applied to your 2D data?
Jossie
2019 年 9 月 20 日
採用された回答
その他の回答 (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!
